/* Homepage below the hero: the about block and the closing FAQ + contact.
   The about block is a centred statement with six app tiles under it; each tile names the problem
   that app fixes and links to its page. The name chips wear each product's own colours and faces,
   fixed on purpose so they look the same in light and dark theme. Everything else uses the
   shell tokens. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/sourceserif4-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; }

/* ---- About, and FAQ + contact ---- */
.home-about, .home-close { box-sizing: border-box; padding: var(--section) var(--gutter); border-top: 1px solid var(--hairline); }

/* About: a centred statement, and under it one tile per app: 1 column on a phone, 2 from 560px, 3 from 960px. */
.home-about { position: relative; overflow: hidden; overflow: clip; }
.home-about::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle, var(--hairline-strong) 1px, transparent 1.5px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.home-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-say { margin: 0; max-width: 24ch; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); line-height: 1.22; letter-spacing: -0.015em; }
.home-tenets { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 22px 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--text-2); }
.home-tenets li + li::before { content: "·"; content: "·" / ""; margin: 0 .55em; }
@media (min-width: 1200px) { .home-say { max-width: 40ch; text-wrap: balance; font-size: clamp(2rem, 1.2rem + 1.2vw, 2.4rem); } }

.home-apps { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; max-width: 64rem; margin: clamp(32px, 5vh, 56px) auto 0; padding: 0; list-style: none; text-align: left; }
@media (min-width: 560px) { .home-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .home-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-apps a { box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--hairline-strong); color: var(--text); text-decoration: none; }
.home-apps .fix { font-size: 1.02rem; line-height: 1.35; }
.home-apps .on { margin-top: auto; font: 500 .78rem/1 var(--sans); letter-spacing: .04em; color: var(--text-2); }
.home-apps a:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
@media (hover: hover) { .home-apps a:hover { border-color: var(--accent-text); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .home-apps a:hover { transform: translateY(-2px); } }
@media (prefers-reduced-motion: no-preference) { .home-apps a { transition: border-color .2s, transform .2s cubic-bezier(.16, 1, .3, 1); } }
.home-apps .tag { border-radius: 8px; padding: 5px 9px; font-size: .85rem; line-height: 1.1; }

/* Each chip wears its app's own face. */
.home-apps .ob .tag { background: radial-gradient(120% 80% at 80% 0%, #12372A, #0B1512 60%); font-family: var(--sans); font-weight: 600; color: #22C55E; }
.home-apps .sc .tag { background: #E7EAFB; font-family: var(--sans); font-weight: 600; color: #4338CA; }
.home-apps .qv .tag { background: #ECE6DA; font-family: "Source Serif 4", Georgia, serif; font-weight: 600; color: #7A2E2A; }
.home-apps .cg .tag { background: #FFFDF8; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; color: #9E1328; }
.home-apps .mf .tag { background: #F2F5EF; font-family: var(--sans); font-weight: 600; color: #173328; }
.home-apps .sp .tag { background: #E3E3E0; padding: 4px 6px; }
.home-apps .sp .tag span { background: #F4FF3A; font-family: "Archivo", system-ui, sans-serif; font-weight: 880; font-stretch: 66%; color: #1F1E1C; padding: 0 5px; }

/* ---- Closing: contact as an envelope, then the FAQ laid open ---- */
.home-close { position: relative; overflow: hidden; overflow: clip; }
.home-close::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle, var(--hairline-strong) 1px, transparent 1.5px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.close-inner { position: relative; z-index: 1; width: 100%; max-width: 72rem; margin: 0 auto; }
.home-close .kicker { margin: 0; font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.env { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: 18px; background: var(--card); border: 1px solid var(--hairline-strong); overflow: hidden; box-shadow: var(--shadow-shot); scroll-margin-top: 80px; }
.env::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, transparent 14px 28px, #60A5FA 28px 42px, transparent 42px 56px); opacity: .8; }
.env-msg { padding: clamp(28px, 4vw, 56px); border-right: 1px dashed var(--hairline-strong); }
.env-msg h2 { margin: 1rem 0 0; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.08; }
.env-msg p:not(.kicker) { color: var(--text-2); margin: 1rem 0 0; max-width: 32rem; }
.env-actions { display: flex; gap: 10px; margin-top: 1.75rem; flex-wrap: wrap; }
.env-actions [hidden] { display: none; }
.env-addr { position: relative; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; }
.env-addr .stamp { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); width: 78px; height: 92px; display: grid; place-items: center; background: var(--accent-muted); color: var(--accent-text); outline: 2px dashed var(--accent); outline-offset: -6px; transform: rotate(4deg); }
.env-addr .stamp svg { width: 40px; height: 40px; }
.env-addr .postmark { position: absolute; top: clamp(40px, 4vw, 58px); right: clamp(90px, 9vw, 120px); width: 110px; height: 110px; border: 2px solid var(--hairline-strong); border-radius: 50%; display: grid; place-items: center; text-align: center; font: 700 .62rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); transform: rotate(-14deg); }
.addr-line { display: flex; align-items: baseline; gap: 14px; margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--hairline-strong); }
.addr-line .lbl { flex: none; width: 2.2rem; font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.addr-line a { min-width: 0; font-family: var(--serif); font-size: clamp(1rem, .75rem + .8vw, 1.35rem); color: var(--accent-text); text-decoration: none; overflow-wrap: anywhere; }
.addr-line a:hover { text-decoration: underline; text-underline-offset: .2em; }
.addr-line a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.addr-line span:not(.lbl) { color: var(--text-2); font-size: .95rem; }
.faq-head { margin-top: clamp(56px, 8vw, 96px); scroll-margin-top: 80px; }
.faq-head h2 { margin: .75rem 0 0; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.2rem); }
.faq-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--hairline-strong); border: 1px solid var(--hairline-strong); border-radius: 14px; overflow: hidden; }
.faq-grid > div { background: var(--bg); padding: clamp(18px, 2vw, 28px); }
.faq-grid h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.faq-grid p { margin: .6rem 0 0; color: var(--text-2); font-size: .98rem; }
.faq-grid a { color: var(--accent-text); }
.footer .container { max-width: none; }

@media (max-width: 860px) {
  .env { grid-template-columns: 1fr; }
  .env-msg { padding: 28px 20px; border-right: 0; border-bottom: 1px dashed var(--hairline-strong); }
  .env-addr { min-height: 0; padding: 128px 20px 24px; }
  .env-addr .postmark { display: none; }
  .addr-line { gap: 10px; }
  .addr-line .lbl { width: 1.8rem; }
  .addr-line a { white-space: nowrap; font-size: min(1.35rem, 3.7vw); }
}
