/* innerdevelopmentguide.app — one stylesheet for every page, from the mock (reference/innerdevelopmentguide-app-site-mock.html).

   The five dimension colours are the brand, fixed and the same in light and dark (docs/product/BRAND.md). Everything else is the
   site's own. No style attributes anywhere: the CSP is style-src 'self', so a colour a page needs is a class here. */

:root {
  --being: #d4b88c; --thinking: #e585a1; --relating: #ef4136; --collaborating: #ff7e2a; --acting: #661a30;
  --bg: #FAF7F5; --surface: #FFFFFF; --ink: #141210;
  --soft: rgba(20, 18, 16, .66); --faint: rgba(20, 18, 16, .6);
  --line: rgba(20, 18, 16, .1); --wash: rgba(20, 18, 16, .05);
  --btn: #141210; --btn-ink: #FAF7F5; --frame: #141210;
  --problem-bg: #fdecea; --problem-ink: #7a1d14;
  color-scheme: light;
}
/* Dark, three ways and the same values in each: the device's setting before the script has run (or without it), the device's setting
   chosen as Auto, and Dark chosen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130F; --surface: #221D18; --ink: #F5F0EA;
    --soft: rgba(245, 240, 234, .68); --faint: rgba(245, 240, 234, .56);
    --line: rgba(255, 255, 255, .12); --wash: rgba(255, 255, 255, .05);
    --btn: #F5F0EA; --btn-ink: #17130F; --frame: #3a332d;
    --problem-bg: #3b1a16; --problem-ink: #ffd9d4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17130F; --surface: #221D18; --ink: #F5F0EA;
  --soft: rgba(245, 240, 234, .68); --faint: rgba(245, 240, 234, .56);
  --line: rgba(255, 255, 255, .12); --wash: rgba(255, 255, 255, .05);
  --btn: #F5F0EA; --btn-ink: #17130F; --frame: #3a332d;
  --problem-bg: #3b1a16; --problem-ink: #ffd9d4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 40px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 10px;
  background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.brand-shapes { display: inline-flex; gap: 5px; }
.brand-shapes img { width: 18px; height: 18px; display: block; }
.site-menu { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.site-menu a { text-decoration: none; color: var(--soft); padding: 4px 0; }
.site-menu a:hover, .site-menu a[aria-current="page"] { color: var(--ink); }
.site-menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.theme-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--wash); }
.theme-toggle button {
  width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 999px;
  background: none; color: var(--soft); font: inherit; font-size: 14px; cursor: pointer; padding: 0;
}
.theme-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

/* ---------- type ---------- */
h1 { font-size: 52px; line-height: 1.06; letter-spacing: -.025em; font-weight: 800; margin: 0; }
h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.015em; font-weight: 800; margin: 0 0 14px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 800; margin: 0 0 6px; }
.lead { font-size: 21px; line-height: 1.45; color: var(--soft); margin: 16px 0 0; max-width: 36em; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.fine { font-size: 14px; color: var(--faint); margin: 12px 0 0; }

/* ---------- buttons ---------- */
.get { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; min-width: 150px; padding: 0 22px;
  border-radius: 14px; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 600; font-size: 16px;
  cursor: pointer; border: 0; font-family: inherit;
}
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:focus-visible { outline-color: var(--ink); }

/* ---------- home ---------- */
.hero { padding-top: 64px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.pair { position: relative; height: 560px; }
.pair .phone { position: absolute; }
.pair .phone:first-child { left: 0; top: 0; z-index: 1; }
.pair .phone:last-child { right: 0; top: 60px; }
.phone { display: block; width: 260px; border-radius: 38px; border: 9px solid var(--frame); overflow: hidden; background: var(--frame); box-shadow: 0 24px 48px rgba(0, 0, 0, .18); margin: 0; }
.phone img { display: block; width: 100%; height: auto; }
.phone.sm { width: 200px; border-width: 7px; border-radius: 30px; }
.block { padding-top: 144px; }
.block > .lead:first-of-type { margin-top: 0; }
.dims { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dims li { background: var(--surface); border-radius: 16px; padding: 18px 16px; box-shadow: inset 0 0 0 1px var(--line); border-top: 6px solid var(--c); }
.dims img { width: 30px; height: 30px; display: block; margin-bottom: 10px; }
.dims b { display: block; font-size: 17px; }
.dims span { display: block; font-size: 14px; color: var(--soft); line-height: 1.35; margin-top: 2px; }
.c-being { --c: var(--being); } .c-thinking { --c: var(--thinking); } .c-relating { --c: var(--relating); }
.c-collaborating { --c: var(--collaborating); } .c-acting { --c: var(--acting); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.shots { display: flex; gap: 24px; justify-content: center; }
ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.ticks li { padding-left: 28px; position: relative; color: var(--soft); }
ul.ticks li b { color: var(--ink); font-weight: 600; }
ul.ticks li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink)); }
.band { margin-top: 144px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.band p { color: var(--soft); margin: 0; }
.band .get { margin-top: 0; justify-content: flex-end; }
.guide-link { padding-top: 40px; color: var(--soft); font-size: 15px; text-align: center; }

/* ---------- reading pages: Help, Support the work, Privacy, Terms ---------- */
.doc { max-width: 720px; padding-top: 56px; }
.doc > h1 { font-size: 44px; }
.doc h2 { font-size: 24px; margin: 44px 0 10px; }
.doc h3 { margin-top: 28px; }
.doc p, .doc li { color: var(--soft); }
.doc p strong, .doc li strong, .doc p b { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc .doc-note { font-size: 14px; color: var(--faint); margin: 10px 0 32px; }
.doc a.back { display: inline-block; margin-bottom: 22px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--soft); }
.doc a.back:hover { color: var(--ink); }
.faqs { margin-top: 32px; }
details.faq { border-top: 1px solid var(--line); padding: 14px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { font-weight: 600; cursor: pointer; color: var(--ink); }
details.faq p { margin: 8px 0 0; }
.mail { font-weight: 600; }

/* ---------- Support the work: the two forms ---------- */
.give { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 8px; }
.give > section { background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.give h2 { font-size: 19px; margin: 0 0 6px; }
.give p { font-size: 15px; }
.give-form { margin: 0; }
.give-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.give-amount, .give-currency {
  min-height: 48px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--faint); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px; padding: 0 12px;
}
.give-amount { flex: 1 1 80px; min-width: 0; }
.give-currency { flex: 0 0 auto; }
.give-per { font-size: 15px; color: var(--soft); white-space: nowrap; }
.give-fields .btn { flex: 1 0 100%; margin-top: 4px; }
.problem { background: var(--problem-bg); color: var(--problem-ink) !important; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.problem a { color: inherit; font-weight: 600; }
.give-note { font-size: 14px; margin-top: 32px; }
.receipt { margin: 18px 0 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--soft); }
.footer-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.footer-groups h2 { font-size: 14px; letter-spacing: 0; color: var(--ink); margin: 0 0 6px; }
.footer-groups ul { list-style: none; margin: 0; padding: 0; }
.footer-groups a { display: inline-block; text-decoration: none; padding: 3px 0; }
.footer-groups a:hover { color: var(--ink); text-decoration: underline; }
.footer-prov { border-top: 1px solid var(--line); padding-top: 20px; line-height: 1.6; margin: 0; }

/* ---------- the app's reader (?embed=1, set by theme.js before first paint) ----------
   The app draws its own title bar and back button, and refuses every navigation, so the site's own chrome would be clutter and its
   links would be dead ends: hidden, and plain text. */
html[data-embed] .site-header,
html[data-embed] .site-footer,
html[data-embed] .skip-link,
html[data-embed] .back { display: none; }
html[data-embed] .doc { padding-top: 8px; padding-bottom: 72px; }
html[data-embed] .doc > h1 { font-size: 34px; }
html[data-embed] .doc a { pointer-events: none; text-decoration: none; color: inherit; font-weight: inherit; }

/* ---------- phone width ---------- */
@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-nav { flex-wrap: wrap; gap: 10px 14px; min-height: 0; padding-top: 14px; padding-bottom: 12px; }
  .site-menu { order: 3; width: 100%; margin: 0; gap: 18px; font-size: 14px; }
  .theme-toggle { margin-left: auto; }
  h1 { font-size: 36px; } h2 { font-size: 25px; } .lead { font-size: 18px; }
  .doc > h1 { font-size: 34px; }
  .hero { padding-top: 44px; }
  .block { padding-top: 80px; }
  .dims { grid-template-columns: 1fr; gap: 8px; }
  .dims li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; border-top: 0; border-left: 6px solid var(--c); padding: 14px; }
  .dims img { grid-row: span 2; margin: 0; }
  .hero, .two, .band .wrap, .give, .footer-groups { grid-template-columns: 1fr; }
  .two { gap: 28px; }
  .rev .shots { order: 2; }
  .phone { width: 230px; }
  .shots .phone.sm:nth-child(n+2) { display: none; }
  .band { margin-top: 96px; }
  .band .get { justify-content: flex-start; }
  .pair { height: 470px; max-width: 360px; }
  .pair .phone { width: 190px; }
  .pair .phone:last-child { top: 50px; }
}

/* High-contrast modes draw no backgrounds, so the pressed theme button needs a border to stay distinguishable. */
@media (forced-colors: active) {
  .theme-toggle button[aria-pressed="true"] { border: 2px solid ButtonText; }
}
