.desk-nav a[aria-current="page"]:not(.btn) { background: var(--surface-soft); box-shadow: inset 0 -3px 0 var(--accent); }
.phone-menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); }
.crumb { padding-top: 32px; font-size: 17px; }
.crumb a { color: var(--ink-soft); font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.page-head { padding-top: 24px; padding-bottom: 8px; }
.page-head h1 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(38px, 5vw, 54px); line-height: 1.08; margin: 0 0 12px; }
.page-head p { font-size: 21px; color: var(--ink-soft); margin: 0; max-width: 40em; }
.mini { flex: 1 1 min(300px, 100%); min-width: 0; display: flex; gap: 18px; align-items: center; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 22px; text-decoration: none; color: var(--ink); transition: transform .12s; }
.mini:hover { transform: translateY(-2px); }
.mini .icon { width: 64px; height: 64px; border-radius: 16px; }
.mini strong { display: block; font-size: 21px; }
.mini span { color: var(--ink-soft); font-size: 17px; line-height: 1.4; display: block; }
.more-row { margin-top: 28px; text-align: center; }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--shadow-card); padding: 40px; }
.feature h2 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(30px, 3.6vw, 38px); margin: 6px 0 10px; }
.feature p { color: var(--ink-soft); margin: 0 0 20px; }
.flow { display: grid; gap: 10px; }
.flow div { background: var(--surface-soft); border-radius: 14px; padding: 14px 18px; font-weight: 600; }
.flow div small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; padding: 28px 22px; } }
.company { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.company p { margin: 0; max-width: 36em; }
.prod-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: var(--surface); border-radius: 32px; box-shadow: var(--shadow-card); padding: 44px; }
.prod-hero .icon { width: 128px; height: 128px; border-radius: 28px; }
.prod-hero h1 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(38px, 5vw, 54px); margin: 0 0 8px; line-height: 1.05; }
.prod-hero .tagline { font-size: 21px; margin: 0 0 14px; color: var(--ink-soft); }
.prod-hero .meta { font-size: 16px; color: var(--ink-soft); margin: 14px 0 0; }
.prod-hero > div { flex: 1 1 380px; min-width: 0; }
@media (max-width: 600px) { .prod-hero { padding: 28px 22px; } .prod-hero .icon { width: 96px; height: 96px; } }
.shots { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 24px; }
.shots img { width: 240px; height: auto; border-radius: 32px; box-shadow: var(--shadow-card); background: var(--surface-muted, #E6E4DF); }
/* Product tour video (BoardBound): click-to-play, no autoplay, poster only until pressed (preload="none"). */
.promo { margin: 24px auto 8px; max-width: 960px; }
.promo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-card, 24px); box-shadow: var(--shadow-card); background: var(--surface-muted, #E6E4DF); }
.promo figcaption { margin: 12px 4px 0; font-size: 16px; color: var(--ink-soft); }
.promo-tx { margin-top: 8px; }
.promo-tx summary { cursor: pointer; min-height: 24px; color: var(--ink-tag); font-weight: 600; }
.promo-tx p { margin: 8px 0 0; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin-top: 24px; }
.feats div { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 26px; }
.feats h3 { margin: 0 0 6px; font-size: 21px; }
.feats p { margin: 0; color: var(--ink-soft); }
.limits { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 28px 32px; border-left: 6px solid var(--accent); }
.limits h2 { font-size: 24px !important; font-family: inherit !important; margin: 0 0 10px !important; }
.limits ul { margin: 0; padding-left: 22px; color: var(--ink-soft); }
.limits li { margin: 6px 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 20px 0 0; font-size: 18px; }
.facts dt { font-weight: 700; } .facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.help-list { display: grid; gap: 14px; }
.help-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 18px 22px; }
.help-row .icon { width: 56px; height: 56px; border-radius: 14px; }
.help-row strong { font-size: 20px; flex: 1 1 200px; }
.help-row .btn { min-height: 48px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 16px; }
.foot-cols h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols a { color: var(--ink); text-decoration: none; min-height: 44px; overflow-wrap: anywhere; display: inline-flex; align-items: center; }
.foot-cols a:hover { text-decoration: underline; }
.foot-brand p { color: var(--ink-soft); font-size: 16px; margin: 10px 0 0; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.legal { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 32px; font-size: 16px; color: var(--ink-soft); }
.hold { background: #FFF4E5; border: 1px solid #E9C48F; color: #5A3A0E; border-radius: 14px; padding: 12px 18px; font-size: 16px; margin-top: 16px; }
.with-side { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; padding-top: 24px; }
.side { position: sticky; top: 24px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 18px; }
.side h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 8px 6px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.3; }
.side a:hover { background: var(--surface-soft); }
.side a[aria-current="page"] { background: var(--surface-soft); box-shadow: inset 4px 0 0 var(--accent); }
.side-all { font-size: 18px !important; }
.side-main { min-width: 0; }
.side-main > .group-h:first-of-type { margin-top: 0; }
.chip-nav { display: none; }
.proj-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status { font-size: 14px; font-weight: 700; color: var(--accent); border: 1.5px solid currentColor; padding: 2px 10px; border-radius: 999px; }
.project .btn { align-self: flex-start; margin-top: auto; }
.proj-mini { align-items: flex-start; }
.proj-mini .pill { display: inline-block; margin-bottom: 8px; }
.story { display: grid; gap: 18px; margin-top: 24px; }
.story section { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 26px 30px; }
.story h2 { font-size: 22px; margin: 0 0 6px; }
.story p { margin: 0; color: var(--ink-soft); }
.tech { margin-top: 24px; padding: 24px 30px; }
@media (max-width: 900px) {
  .with-side { grid-template-columns: 1fr; gap: 0; }
  .side { display: none; }
  .chip-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 16px; margin-bottom: 8px; }
  .chip-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-btn); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
  .chip-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
}
/* sidebar groups: shared */
.grp summary { list-style: none; display: flex; align-items: center; gap: 8px; }
.grp summary::-webkit-details-marker { display: none; }
.g-icon { width: 18px; height: 18px; flex: none; }
.group-h { display: flex; align-items: center; gap: 8px; }
.pill .g-icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.next-proj { margin-top: 28px; }
:root:not([data-nav="2"]) .grp summary { pointer-events: none; }
/* 1 Dividers: dark small caps heading, rule above, items indented on a guide line */
[data-nav="1"] .side .g-icon, [data-nav="1"] .group-h .g-icon, [data-nav="2"] .group-h .g-icon { display: none; }
[data-nav="1"] .grp { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
[data-nav="1"] .grp summary { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 0 8px 6px; }
[data-nav="1"] .grp ul { margin-left: 14px; border-left: 2px solid var(--line); padding-left: 6px; }
/* 2 Folders: tappable group rows with a chevron, groups open and close */
[data-nav="2"] .side .g-icon { display: none; }
[data-nav="2"] .grp { margin-top: 6px; }
[data-nav="2"] .grp summary { cursor: pointer; min-height: 48px; padding: 0 12px; border-radius: 10px; font-size: 18px; font-weight: 800; color: var(--ink); justify-content: space-between; }
[data-nav="2"] .grp summary:hover { background: var(--surface-soft); }
[data-nav="2"] .grp summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
[data-nav="2"] .grp[open] summary::after { transform: rotate(-135deg); }
[data-nav="2"] .grp ul { padding-left: 16px; }
[data-nav="2"] .grp a { font-weight: 500; }
/* 3 Bands: tinted heading strips */
[data-nav="3"] .grp { margin-top: 14px; }
[data-nav="3"] .grp summary { background: #E1ECE8; color: var(--accent); font-size: 15px; font-weight: 800; padding: 10px 12px; border-radius: 10px; margin-bottom: 4px; }
[data-nav="3"] .group-h { background: #E1ECE8; color: var(--accent); padding: 10px 16px; border-radius: 12px; }
/* 4 Icons + color: each group has its own color, items carry a matching dot */
[data-nav="4"] .grp { margin-top: 16px; }
[data-nav="4"] .grp summary { font-size: 17px; font-weight: 800; padding: 0 8px 4px; }
[data-nav="4"] [data-g="0"] { --g: #2C6A3C; } [data-nav="4"] [data-g="1"] { --g: #9A4317; } [data-nav="4"] [data-g="2"] { --g: #2F4A7A; }
[data-nav="4"] .grp summary, [data-nav="4"] .group-h { color: var(--g); }
[data-nav="4"] .group-h { text-transform: none; letter-spacing: 0; font-size: 20px; }
[data-nav="4"] .grp ul { margin-left: 16px; border-left: 2px solid color-mix(in srgb, var(--g) 35%, transparent); padding-left: 6px; }
[data-nav="4"] .grp a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--g); }
/* smoother page changes */
html { scrollbar-gutter: stable; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: ease; }
.site-header { view-transition-name: site-header; }
.side { view-transition-name: side-nav; }
::view-transition-group(site-header), ::view-transition-group(side-nav) { animation-duration: 0s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* left list never runs off the bottom of the screen */
.side { top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; }
/* footer groups: same icon + color + indent language as the project list */
.foot-grp h2 { display: flex; align-items: center; gap: 8px; font-size: 16px !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 800; color: var(--f) !important; }
.foot-grp ul { margin-left: 8px !important; border-left: 2px solid color-mix(in srgb, var(--f) 35%, transparent); padding-left: 12px !important; }
[data-f="apps"] { --f: #1F5C54; } [data-f="company"] { --f: #2F4A7A; } [data-f="help"] { --f: #9A4317; }
/* more breathing room around and inside the left list */
.side { top: 24px; max-height: calc(100vh - 48px); padding-bottom: 40px; scroll-padding-block: 24px; }
/* Phones: screenshots become a swipe row (next shot peeks; scrollbar kept visible as the cue). */
@media (max-width: 600px) {
  .shots { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px 4px 14px; }
  .shots img { flex: 0 0 220px; width: 220px; scroll-snap-align: start; }
}
@media (max-width: 480px) { .foot-grp[data-f="help"] { grid-column: 1 / -1; } .foot-grp[data-f="help"] a { overflow-wrap: normal; } }
/* Privacy page: one card per app, the plain-words summary first. */
.priv-list { display: grid; gap: 16px; margin-top: 20px; }
.priv-card { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 24px 28px; }
.priv-card .icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.priv-card h3 { margin: 0 0 6px; font-size: 21px; }
.priv-card p { margin: 0 0 14px; color: var(--ink-soft); max-width: 62ch; }
.priv-card .app-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .priv-card { flex-direction: column; gap: 12px; padding: 22px; } }

/* Build animation: the staircase fills in square by square and resolves into the mark.
   Plays once in the home page header. Final frame is the static mark.
   Browsers without CSS `d` support (Safari) and reduced-motion visitors see the static mark.
   Source of truth: Brand/martin-apps-mark-build.svg in the LLC records repo. */
@media (prefers-reduced-motion: no-preference) {
  .mark-build path { animation: mark-build 3.1s 1; }
}
@keyframes mark-build {
  0.0%, 19.4% { d: path("M0,0 H100 L140,50 L180,0 H280 V280 H0 Z M40,40 H80 L140,110 L200,40 H240 V80 H200 V120 H160 V160 H120 V200 H80 V240 H40 Z M120,240 V200 H160 V160 H200 V120 H240 V240 Z"); }
  19.5%, 29.0% { d: path("M0,0 H100 L140,50 L180,0 H280 V280 H0 Z M40,40 H80 L140,110 L200,40 H240 V80 H200 V120 H160 V160 H120 V200 H80 V240 H40 Z M160,240 V160 H200 V120 H240 V240 Z"); }
  29.1%, 38.7% { d: path("M0,0 H100 L140,50 L180,0 H280 V280 H0 Z M40,40 H80 L140,110 L200,40 H240 V80 H200 V120 H160 V160 H120 V200 H80 V240 H40 Z M160,160 H200 V120 H240 V240 H200 V200 H160 Z"); }
  38.8%, 48.4% { d: path("M0,0 H100 L140,50 L180,0 H280 V280 H0 Z M40,40 H80 L140,110 L200,40 H240 V80 H200 V120 H160 V160 H120 V200 H80 V240 H40 Z M200,120 H240 V240 H200 Z"); }
  48.5%, 58.1% { d: path("M0,0 H100 L140,50 L180,0 H280 V280 H0 Z M40,40 H80 L140,110 L200,40 H240 V80 H200 V120 H160 V160 H120 V200 H80 V240 H40 Z M200,120 H240 V200 H200 Z"); }
  58.2%, 67.7% { d: path("M0,0 H100 L140,50 L180,0 H280 V280 H0 Z M40,40 H80 L140,110 L200,40 H240 V80 H200 V120 H160 V160 H120 V200 H80 V240 H40 Z M200,120 H240 V160 H200 Z"); }
  67.8%, 100% { d: path("M0,0 H100 L140,50 L180,0 H280 V280 H0 Z M40,40 H80 L140,110 L200,40 H240 V80 H200 V120 H160 V160 H120 V200 H80 V240 H40 Z"); }
}

/* About: founder photo with a black border, side by side with the founder text */
.founder { margin-top: 32px; }
.founder-row { display: flex; gap: 22px; align-items: center; }
.founder-row img { flex: none; width: 132px; height: 132px; object-fit: cover; border: 3px solid #1A1A1A; border-radius: 14px; box-shadow: var(--shadow-card); }
.founder-row p { margin: 0; }
@media (max-width: 600px) { .founder-row { gap: 16px; align-items: flex-start; } .founder-row img { width: 96px; height: 96px; } }
/* About: the Builder levels the founder photo (assets/about-frame.js). The stage sits flush under the photo. */
.founder-row.has-scene img { align-self: flex-end; }
.frame-stage { aspect-ratio: 300 / 116; width: 300px; max-width: 100%; height: auto; overflow: visible; clip-path: inset(-48px 0 0 0); margin-top: 0; }   /* the hammer rises above the stage onto the photo edge; the sides still clip the walk-in */
/* Outdoor-line product pages: a wordless Builder scene under the feature cards (assets/app-scenes.js). */
.app-stage { aspect-ratio: 360 / 120; width: 360px; max-width: 100%; height: auto; margin-top: 28px; overflow: hidden; }
