/* BuildStack Labs site styles: one file for every page (the CSP allows only same-origin styles).
   Selectors are scoped by class (.site-header, .site-footer, main > section): the policy pages
   use <header>, <nav> and <section> inside articles too. */

/* Headings and the wordmark only; body text stays in the system font. OFL, latin subset, 22 KB
   (licence: assets/fonts/OFL.txt). Chosen in the UI review of 14 Oct 2026: most visitors are on
   Android, where the system stack falls back to Roboto and the tight headline looked generic. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/assets/fonts/bricolage-grotesque-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #111318;
  --muted: #5B6070;
  --line: #E6E4DE;
  --accent: #4B4BE0;
  --accent-ink: #FFFFFF;
  --accent-soft: #ECECFD;
  --live: #157A4F;
  --live-soft: #E3F3EA;
  --soon: #8A5A00;
  --soon-soft: #FBF0D9;
  --grid: rgba(17, 19, 24, 0.045);
  --radius: 16px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", var(--font);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #171A21;
    --ink: #F3F2EE;
    --muted: #A3A6B2;
    --line: #2A2E37;
    --accent: #8C8CFF;
    --accent-ink: #111318;
    --accent-soft: #23244A;
    --live: #6FD3A2;
    --live-soft: #16301F;
    --soon: #F1C46B;
    --soon-soft: #33280F;
    --grid: rgba(255, 255, 255, 0.04);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
p, li { text-wrap: pretty; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.mark-top { fill: var(--accent); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 64px; }
.brand { display: flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { font-family: var(--display); font-weight: 700; }
.brand svg { width: 28px; height: 28px; flex: none; }
.site-header nav { display: flex; gap: 2px; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 10px 10px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a:hover { color: var(--ink); background: var(--accent-soft); }
.page-pricing .site-header a[href="/pricing/"], .page-contact .site-header a[href="/contact/"] { color: var(--ink); background: var(--accent-soft); }
@media (max-width: 560px) { .site-header nav a.hide-sm { display: none; } }
@media (max-width: 400px) { .brand { gap: 8px; } .brand span { font-size: 16px; } .site-header nav a { padding: 10px 6px; font-size: 14px; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 40%, transparent 100%);
}
.hero::after { content: ""; position: absolute; width: 760px; height: 560px; right: max(-120px, calc(50% - 760px)); top: 60px; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent); }
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 48px; }
@media (min-width: 720px) { .hero .wrap { padding-top: 104px; padding-bottom: 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 24px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h1 { font-size: clamp(36px, 6.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 24px; max-width: 16ch; }
h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.lead { font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: var(--surface); transition: transform 0.15s ease; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; } }

/* The portfolio stacked like the mark, newest on top; on phones a row of app icons. */
.stack { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 10px; margin-top: -16px; }
.stack-card { display: flex; align-items: center; gap: 14px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 0 rgba(17, 19, 24, 0.03), 0 16px 36px -22px rgba(17, 19, 24, 0.35); }
.stack-card > span:not(.app-icon) { display: none; }
.stack-card.is-next { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: none; }
.stack-card .app-icon { width: 44px; height: 44px; border-radius: 11px; }
.stack-card .app-icon.tile { padding: 7px; }
.stack-card .name { font-weight: 700; display: block; line-height: 1.3; }
.stack-card .what { font-size: 14px; color: var(--muted); display: block; line-height: 1.4; }
@media (min-width: 960px) {
  .stack { display: grid; gap: 12px; margin: 0; }
  .stack-card { padding: 14px 18px 14px 14px; }
  .stack-card > span:not(.app-icon) { display: block; }
  .stack-card .status { margin-left: auto; }
  .stack-card.is-next { margin-left: 20px; background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
  .stack-card.mid { margin-right: 24px; }
}

/* Home sections */
main > section { padding: 64px 0; }
@media (min-width: 720px) { main > section { padding: 88px 0; } }
.apps-section { padding-top: 32px; }
@media (min-width: 720px) { main > section.apps-section { padding-top: 48px; } }
.section-head { margin-bottom: 36px; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 14px 0 0; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 0; max-width: 24ch; }

/* App cards: the whole card is the link (the link's ::after covers the card). */
.apps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 880px) { .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.app { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.app--purohit { background: linear-gradient(180deg, color-mix(in srgb, #D06F4B 10%, var(--surface)), var(--surface) 150px); }
.app--furfam { background: linear-gradient(180deg, color-mix(in srgb, #6B8F71 10%, var(--surface)), var(--surface) 150px); }
.app--soon { background: transparent; border-style: dashed; }
.app:has(.card-link:hover) { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(17, 19, 24, 0.35); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex: none; }
.app-icon.tile { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.08); padding: 9px; }
.app-icon img { width: 100%; height: 100%; }
.status { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.status.live { color: var(--live); background: var(--live-soft); }
.status.soon { color: var(--soon); background: var(--soon-soft); }
.app h3 { font-size: 24px; letter-spacing: -0.015em; margin: 0 0 4px; }
.app .tagline { color: var(--ink); font-weight: 500; margin: 0 0 12px; }
.app p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.app .meta { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.card-link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }

/* About: the page's one dark band (in light mode a white band on paper read as an accident). */
.alt { --bg: #111318; --surface: #181B22; --ink: #F3F2EE; --muted: #A3A6B2; --line: #2A2E37; --accent: #8C8CFF; --accent-soft: #23244A; background: var(--bg); color: var(--ink); }
@media (prefers-color-scheme: dark) { .alt { --bg: #0A0B0F; } }
.alt .kicker { color: var(--accent); }
.principles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 880px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.principle { border-top: 1px solid var(--line); padding-top: 20px; }
.principle .num { display: block; font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }
.principle h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -0.01em; }
.principle p { margin: 0; color: var(--muted); }

/* Contact band */
.contact-band { border-top: 1px solid var(--line); }
.contact { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 880px) { .contact { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.contact p { color: var(--muted); margin: 16px 0 0; max-width: 52ch; }
.mail { font-size: clamp(18px, 3vw, 24px); font-weight: 700; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; display: inline-block; padding: 8px 0; }
.mail:hover { text-decoration: underline; }

/* Policy and info pages */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
@media (min-width: 720px) { .doc { padding-top: 72px; } }
.doc-head { margin-bottom: 32px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); max-width: none; margin-bottom: 12px; }
.doc .kicker { color: var(--muted); }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.doc .lead { margin-bottom: 0; font-size: 18px; max-width: none; }
.doc section { padding: 0; margin-top: 40px; }
.doc h2 { font-size: 24px; letter-spacing: -0.015em; margin: 0 0 12px; max-width: none; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.toc p { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 0; break-inside: avoid; }
.toc li::marker { color: var(--muted); }
.doc .toc a { display: inline-block; padding: 8px 0; color: var(--ink); text-decoration: none; }
.doc .toc a:hover { color: var(--accent); text-decoration: underline; }
.callout { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 14px; padding: 18px 20px; }
.callout p { margin: 0 0 6px; }
.callout p:last-child { margin: 0; color: var(--muted); }
.doc-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
@media (max-width: 559px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tr { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table td { padding: 0; border: 0; text-align: left !important; }
  .price-table td:last-child { order: -1; font-size: 18px; }
  .price-table td:first-child { color: var(--muted); }
}
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card .label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
@media (min-width: 560px) { .facts div { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; } }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }

/* 404: the mark with its top block missing */
.notfound { padding-top: 72px; padding-bottom: 96px; }
.notfound h1 { font-size: clamp(32px, 5vw, 46px); max-width: 20ch; }
.nf-mark { display: block; width: 96px; height: 96px; margin-bottom: 28px; }
.nf-mark .gap { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2.4 2; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 28px 0 0; }
.notfound-links a { color: var(--accent); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer-brand { grid-column: 1 / -1; }
@media (max-width: 559px) {
  .site-footer nav[aria-label="Policies"] { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .site-footer nav[aria-label="Policies"] h2 { grid-column: 1 / -1; }
}
@media (min-width: 560px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }
.footer-brand .brand { color: var(--ink); margin-bottom: 8px; }
.footer-brand p { margin: 0 0 8px; max-width: 40ch; }
.footer-brand a:not(.brand) { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 40px; }
.site-footer nav { display: flex; flex-direction: column; }
.site-footer h2 { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 0 0 4px; max-width: none; }
.site-footer nav a { text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .app { transition: none; }
  .btn:hover, .app:has(.card-link:hover) { transform: none; }
}
