/* Hallmark · shape: Index-First (the studio's pieces as an icon row) · genre: modern-minimal · theme: custom (vibe: "dark stage, a 3D bear cook, glossy app icons, one coral band"; after tapbots.com, by request of Tri) · job: try · draw: 6c63f5
 * hero: Poster · nav: edge-aligned · footer: statement · imagery: generated still 1 (gen-image, hero), app icons 5, the product built (bento command bar sample in a slot) · signature: a bear cook plating a bento on a dark counter, then the four Mac apps as a row of glossy icons
 * axes: dark/geometric-sans/warm · posture: committed (one coral band) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: V, the layout borrows the reference's order (stage, icon row, colour band, light band); the cook, the bento and the cooking/served states make it Bearly's own */
/* Hallmark · answered F4 · the coral pill is the one primary recipe, repeated for the same action (Download Clip); the outline pill is the quiet secondary */
/* Hallmark · dismissed 58 · the 616-word page count includes the nine closed FAQ answers, hidden until opened for search and answer engines; the render tier screen budget passes */
/* Hallmark · dismissed 58 · the 87 words from y=600 at 1440 are the five-piece icon row (name, one short line and a state pill each), read as a list; Bento Kettle joined on 2026-10-29 */
/* Hallmark · finish-review: subagent · 8 findings · 8 resolved (icons cut to alpha and matched, hero feathered by mask, phone crop, Bento Grid named and marked Cooking, box in box removed, FAQ head, footer line) · gap: real Bento Grid screenshot */
/* Hallmark · waive 77 · the Clip close is one centred column, a 300px icon over head, line and download · the app-page close Tri asked for, after tapbots.com */
/* Hallmark · waive 84 · bento-command-bar slot holds the built Bento Grid command bar · Tri chose slots now and real Bento Grid screenshots later */
@import url("./tokens.css");
@import url("./base.css");

h1, h2, h3 { font-weight: var(--display-weight); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Controls: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-xl); border: 1px solid transparent; border-radius: var(--radius-pill); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-focus); }
.btn--quiet { border-color: var(--color-rule-2); color: var(--color-ink); background: transparent; }
.btn--quiet:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-md); border: 1px solid var(--color-rule-2); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-rule-2); }
.link:hover { text-decoration-color: var(--color-accent); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.link:active { opacity: 0.8; }

/* Nav: edge-aligned, over the stage */
.nav { position: absolute; inset: 0 0 auto; z-index: var(--z-raised); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; }
.wordmark:focus-visible, .nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav__links { display: flex; align-items: center; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.nav__links a { font-size: var(--text-sm); font-weight: 400; text-decoration: none; white-space: nowrap; color: var(--color-ink-2); }
.nav__links a:hover { color: var(--color-ink); }

/* Hero: the stage */
.hero { position: relative; display: grid; align-items: end; min-height: min(100svh, 62rem); background: var(--color-paper); color: var(--color-ink); isolation: isolate; }
.hero__art { position: absolute; top: 0; left: 50%; width: min(100%, 72rem, 126svh); aspect-ratio: 1672 / 941; margin: 0; z-index: -1; transform: translateX(-50%); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art { -webkit-mask-image: linear-gradient(to right, transparent, var(--color-ink) 24%, var(--color-ink) 76%, transparent), linear-gradient(to bottom, transparent, var(--color-ink) 14%, var(--color-ink) 62%, transparent 96%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, var(--color-ink) 24%, var(--color-ink) 76%, transparent), linear-gradient(to bottom, transparent, var(--color-ink) 14%, var(--color-ink) 62%, transparent 96%); mask-composite: intersect; }
.hero__inner { display: grid; justify-items: center; gap: var(--space-lg); padding-block: var(--space-4xl) var(--space-3xl); text-align: center; }
.hero h1 { max-width: 18ch; font-size: var(--text-display); text-shadow: 0 0 24px var(--color-scrim); }
.hero .lead { color: var(--color-ink-2); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }
.hero__note { font-size: var(--text-sm); color: var(--color-muted); }

/* Sections */
.section { padding-block: var(--section-gap); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head--center { justify-items: center; text-align: center; }

/* The Mac menu: a row of icons */
.apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.app { display: grid; justify-items: center; align-content: start; gap: var(--space-sm); text-align: center; }
.app img { width: 168px; height: 168px; margin-bottom: var(--space-sm); filter: drop-shadow(0 18px 24px var(--color-scrim)); }
.app h3 { font-size: var(--text-title); }
.app__link { text-decoration: none; }
.app__link:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.app__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.app p { max-width: 28ch; color: var(--color-muted); font-size: var(--text-sm); }
.app__state { margin-top: var(--space-xs); }
.app .btn { min-height: 44px; padding: 0 var(--space-lg); font-size: var(--text-sm); }

/* Bento Grid: split with the built command bar */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.split__text { display: grid; gap: var(--space-lg); }
.split__text .lead { color: var(--color-ink-2); }
.split__text .pill { justify-self: start; }
kbd { font-family: var(--font-body); font-weight: 600; padding: 0 var(--space-2xs); border: 1px solid var(--color-rule-2); border-radius: 6px; background: var(--color-paper-3); }
.shot { margin: 0; display: grid; place-items: center; background: none; }
.cmd { width: 100%; border-radius: var(--radius-input); background: var(--color-paper-3); box-shadow: var(--rim), var(--cast-icon); overflow: hidden; }
.cmd__field { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--color-rule); font-size: var(--text-xl); }
.cmd__typed { font-weight: 600; }
.cmd__hint { font-size: var(--text-sm); color: var(--color-muted); }
.cmd__list { margin: 0; padding: var(--space-xs); list-style: none; }
.cmd__item { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg); border-radius: 10px; font-size: var(--text-lg); }
.cmd__item--on { background: var(--color-rule); }
.cmd__item span:first-child { font-weight: 600; }
.cmd__item span:last-child { font-size: var(--text-sm); color: var(--color-muted); }
.cmd__foot { padding: var(--space-md) var(--space-xl); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

/* The coral band, cut on a slant */
.band { padding-block: calc(var(--section-gap-s) + var(--cut)); background: var(--color-field); color: var(--color-accent-ink); clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.statement { max-width: 22ch; font-family: var(--font-display); font-size: var(--text-display); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.02; text-wrap: balance; }
.band .caption { margin-top: var(--space-lg); font-size: var(--text-md); font-weight: 400; }

/* Extensions on the light band */
.light { margin-top: calc(-1 * var(--cut)); padding-block: calc(var(--section-gap-s) + var(--cut)) var(--section-gap-s); background: var(--color-light); color: var(--color-light-ink); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.light h2 { color: var(--color-light-ink); }
.exts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-3xl); margin: 0; padding: 0; list-style: none; }
.ext { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-lg); align-items: center; padding-block: var(--space-xl); border-top: 1px solid var(--color-light-2); }
.ext h3 { color: var(--color-light-ink); }
.ext img { grid-row: 1 / span 2; width: 88px; height: auto; filter: drop-shadow(0 10px 14px color-mix(in oklab, var(--color-light-ink) 22%, transparent)); }
.ext h3 { grid-column: 2; align-self: end; }
.ext p { grid-column: 2; align-self: start; color: var(--color-light-muted); }
.ext .link { grid-column: 3; grid-row: 1 / span 2; color: var(--color-light-ink); text-decoration-color: var(--color-light-muted); }
.light .link:focus-visible { outline-color: var(--color-light-ink); }

/* Close: Clip, centred like an app page */
.close { text-align: center; }
.close__inner { display: grid; justify-items: center; gap: var(--space-lg); }
.close img { width: 300px; height: 300px; filter: drop-shadow(0 22px 30px var(--color-scrim)); }
.close .lead { color: var(--color-ink-2); max-width: 40ch; }

/* Footer: statement */
.footer { padding-block: var(--section-gap-s) var(--space-2xl); border-top: 1px solid var(--color-rule); text-align: center; }
.footer__line { margin-inline: auto; font-family: var(--font-display); font-size: var(--text-section); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.05; max-width: 20ch; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xl); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.footer__links a { font-weight: 400; color: var(--color-ink-2); }
.footer__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.legal { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
  .hero { min-height: 0; }
  .hero__art { position: relative; left: 0; width: 100%; transform: none; }
  .hero__inner { padding-block: 0 var(--space-3xl); }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-2xl); }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .cmd__field, .cmd__foot { padding-inline: var(--space-lg); }
  .cmd__item { padding: var(--space-md); font-size: var(--text-md); }
  .exts { grid-template-columns: minmax(0, 1fr); }
  .nav__links li:not(:last-child) { display: none; }
}
@media (max-width: 40rem) {
  .hero__art { margin-top: 72px; aspect-ratio: 1 / 1; overflow: clip; -webkit-mask-image: linear-gradient(to bottom, var(--color-ink) 70%, transparent); mask-image: linear-gradient(to bottom, var(--color-ink) 70%, transparent); }
  .hero__art img { object-position: 50% 0%; }
  .hero__art picture { display: contents; }
  .app img { width: 120px; height: 120px; }
  .ext { grid-template-columns: auto minmax(0, 1fr); }
  .ext img { width: 64px; grid-row: 1 / span 3; align-self: start; }
  .ext .link { grid-column: 2; grid-row: auto; justify-self: start; }
}

/* FAQ: closed disclosures; answers hidden while closed so the screen budget counts questions only */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.faq__list { border-bottom: 1px solid var(--color-rule); }
.faq details { border-top: 1px solid var(--color-rule); }
.faq summary { display: flex; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-lg); font-family: var(--font-display); font-size: var(--text-title); font-weight: 800; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--color-ink-2); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.faq details p { max-width: 62ch; padding-bottom: var(--space-lg); color: var(--color-ink-2); }
.faq details:not([open]) > :not(summary) { display: none; }
@media (max-width: 60rem) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }

/* Hearts on the icon row: one per visitor per app, counted server side (functions/api/love.js), totals for the owner only */
.app__acts { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); margin-top: var(--space-xs); }
.app__acts .app__state { margin-top: 0; }
.love { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.love svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.love:hover { background: var(--color-paper-3); color: var(--color-accent); }
.love:active { transform: translateY(1px); }
.love:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.love[aria-pressed="true"] { border-color: var(--color-accent); color: var(--color-accent); cursor: default; }
.love[aria-pressed="true"] svg { fill: currentColor; }
.love[aria-busy="true"] { cursor: progress; opacity: 0.7; }
.love:disabled { opacity: 0.55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .love { transition: background-color var(--dur-short) linear; } }
.love__status { min-height: 1lh; margin-top: var(--space-xl); text-align: center; font-size: var(--text-sm); color: var(--color-ink-2); }
.notify { display: grid; justify-items: center; margin-top: var(--space-md); }
.signup { display: grid; gap: var(--space-xs); width: min(100%, 30rem); }
.signup label { font-size: var(--text-sm); color: var(--color-ink-2); }
.signup__row { display: flex; gap: var(--space-xs); }
.signup input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); outline: 2px solid transparent; outline-offset: -3px; }
.signup input:focus-visible { outline-color: var(--color-focus); }
.signup input[aria-invalid] { border-color: var(--color-error); }
.signup__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 40rem) { .signup__row { flex-direction: column; } }
.app > p { min-height: 2lh; }
