/* Hallmark · shape: Workbench · genre: atmospheric · theme: brand (restyle by request: charm.land, "more colourful, dynamic, animated", the user's own 3D heads) · redesign: restyle · draw: ada309
 * paper: oklch(23% 0.11 288) · accent: oklch(76% 0.2 345) · display: Unbounded · body: Space Grotesk · hero: a 3D head that glitches between person and robot in a vaporwave sky, the real capture rising under it · nav: lime banner over a clear bar that turns solid on scroll · footer: index columns · signature: Valentina's reply waiting for your OK, under the glitching head
 * axes: dark/grotesk-heavy/chromatic-pink · posture: Loud · contrast: pass (text over the sky sits in a night halo) · fold: pass · imagery: screenshots 5 (puppeteer-core, demo company, sample sites as *.example.com) + WebGL scene (Face Cap head, procedural robot) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 · weakest: E, the head is mood until it glitches into the robot; it lands only because the page is about people-like employees that are machines */
/* Hallmark · waive 8 · the order is the old page's (product, roles, how, safety, social, questions) · a restyle keeps the content's sequence */
/* Hallmark · waive 44c · the hero screen starts at the fold and rises as you scroll · the capture is the proof, the head is the first screen's picture */
/* Hallmark · dropped .rows (roles as rows) · replaced by candy tiles, the page's colour moment */
/* Hallmark · dropped dg, dk, .scene, .demo-tab, .js-steps (the animated demo) · replaced by captures of the real product */
/* Hallmark · dropped the demo's headings and sample figures (Nueva tarea, Ahora, $ 84.000, 08:00, 10 %, $ 50.000) · the animated mock is replaced by captures of the real app */
/* Hallmark · reworded the hero to the community manager ("Tu community manager, en tu tono.") · the user chose it over the general headline */
@import url("./tokens.css");
@import url("./base.css");

html { background: var(--color-paper); }
body { background: radial-gradient(56rem 40rem at 72% 18%, var(--color-bloom), transparent 70%) no-repeat fixed, var(--color-sky); }
#bg3d { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100lvh; pointer-events: none; opacity: 0; transition: opacity 900ms var(--ease-out); }
#bg3d.is-live { opacity: 1; }
.banner, main, footer { position: relative; z-index: var(--z-base); }
h1, h2, h3 { color: var(--color-ink); }

/* text that sits on the open sky gets a night halo behind it */
.halo { position: relative; isolation: isolate; }
.halo::before { content: ""; position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, var(--color-halo), transparent); }
.halo :is(h1, h2, p) { text-shadow: 0 1px 18px var(--color-halo); }

/* ---------- controls: one filled pink pill, one underlined link ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 54px; padding: 0 var(--space-xl); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: 0 14px 34px -12px var(--color-glow); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.link { color: var(--color-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-lime); }
.link:active { color: var(--color-ink-2); }
.link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }

/* ---------- nav: a lime banner, then a bar that is clear over the sky and solid once you scroll ---------- */
.banner { background: var(--color-lime); color: var(--color-candy-ink); font-size: var(--text-sm); font-weight: 700; }
.banner .container { display: flex; justify-content: center; padding-block: var(--space-xs); }
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); border-bottom: var(--rule-hair) solid transparent; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.bar.solid { background: color-mix(in oklab, var(--color-paper) 90%, transparent); border-bottom-color: var(--color-edge); backdrop-filter: blur(12px); }
.bar.away { transform: translateY(-100%); }
.bar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.wordmark { font: 700 1.3rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--color-ink); text-decoration: none; }
.wordmark:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.bar nav { display: flex; align-items: center; gap: var(--space-lg); }
.bar nav a:not(.btn) { color: var(--color-ink); font-weight: 500; text-decoration: none; text-shadow: 0 1px 12px var(--color-halo); }
.bar nav a:not(.btn):hover { color: var(--color-lime); }
.bar nav a:not(.btn):focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.bar .btn { min-height: 42px; padding-inline: var(--space-lg); font-size: var(--text-sm); }

/* ---------- hero: the copy, the head's box beside it, then the real screen rising ---------- */
.hero { padding-block: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: var(--gap-columns); min-height: calc(100svh - 108px - 7rem); padding-block: var(--space-xl); }
.hero h1 { font-size: clamp(2.5rem, 3.1vw + 1rem, 4.6rem); line-height: 1.04; max-width: 11ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink); max-width: 30ch; }
.actions { display: flex; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); flex-wrap: wrap; }
.terms { margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-sm); }
.hero-head { height: min(68svh, 640px); }
.js .hero-in { opacity: 0; transform: translateY(10px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .hero-in.is-in { opacity: 1; transform: none; }
.screen { margin: 0 auto; max-width: 1180px; aspect-ratio: 16 / 10; border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-edge), 0 40px 90px -30px var(--color-glow), 0 24px 140px -40px var(--color-glow-2); }
.screen img { border-radius: var(--radius-card); }
.js .screen[data-rise] { transform: perspective(1600px) rotateX(20deg) scale(0.94); transform-origin: 50% 0; transition: transform 1200ms var(--ease-out); }
.js .screen[data-rise].is-in { transform: none; }

/* ---------- sections float over the sky ---------- */
section { padding-block: var(--section-gap) 0; }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); justify-items: start; }
.head .lead { color: var(--color-ink-2); }
.sheet { background: color-mix(in oklab, var(--color-paper) 92%, transparent); border: var(--rule-hair) solid var(--color-edge); border-radius: var(--radius-sheet); padding: var(--space-2xl); }

/* the product at work: a pinned run (one capture held while four panels pass) */
.shot { margin: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--color-edge), 0 30px 70px -30px var(--color-glow); background: var(--color-paper-2); }
.shot img { border-radius: 16px; }
.pinned { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); }
.panel { min-height: 62svh; display: grid; align-content: center; gap: var(--space-md); padding-block: var(--space-xl); }
.panel h3 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.5rem); max-width: 14ch; }
.panel p { color: var(--color-ink-2); font-size: var(--text-lead); max-width: 32ch; }
.panel .shot { margin-top: var(--space-lg); }
.stage { display: none; }
.js .stage { display: block; position: sticky; top: calc(50svh - 12rem); align-self: start; aspect-ratio: 16 / 10; }
.js .stage .shot { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.js .stage .shot.on { opacity: 1; }
.js .stage .shot img { height: 100%; object-fit: cover; object-position: 50% 0%; }
.js .panel .shot { display: none; }

/* roles: candy tiles */
.tiles { list-style: none; margin: 0; padding: 0 0 var(--space-xl); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.tiles li { min-height: 15rem; padding: var(--space-xl); border-radius: var(--radius-card); color: var(--color-candy-ink); display: grid; align-content: space-between; gap: var(--space-lg); transition: transform var(--dur-short) var(--ease-out); }
.tiles li:nth-child(3n+2) { transform: translateY(var(--space-xl)); }
.tiles h3 { color: var(--color-candy-ink); font-size: clamp(1.3rem, 0.8vw + 1rem, 1.75rem); }
.tiles p { font-size: var(--text-lead); line-height: 1.4; max-width: 30ch; }
.t-pink { background: var(--color-accent); } .t-cyan { background: var(--color-cyan); } .t-lime { background: var(--color-lime); }
.t-orange { background: var(--color-orange); } .t-lavender { background: var(--color-lavender); } .t-white { background: var(--color-white); }
.js .tiles [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .tiles [data-reveal].is-in { opacity: 1; transform: none; }
.js .tiles [data-reveal].is-in:nth-child(3n+2) { transform: translateY(var(--space-xl)); }
.tiles li:hover, .js .tiles [data-reveal].is-in:hover { transform: translateY(-6px) rotate(-1.5deg); transition-delay: 0ms; }

/* how it works: one statement on the open sky, the robot beside it */
.statement { padding-block: var(--section-gap-l) var(--section-gap-s); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--gap-columns); }
.statement-head { height: min(62svh, 560px); }
.statement .big { font: 700 clamp(1.8rem, 2vw + 1rem, 3rem)/1.18 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); max-width: 24ch; text-wrap: balance; }
.statement .after { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-ink-2); }

/* safety: four wells on the sky */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.well { background: color-mix(in oklab, var(--color-paper) 92%, transparent); border: var(--rule-hair) solid var(--color-edge); border-radius: var(--radius-card); padding: var(--space-xl); min-height: 250px; display: grid; align-content: space-between; gap: var(--space-lg); }
.well h3 { font-size: var(--text-title); }
.well p { color: var(--color-ink-2); }

/* social media: a table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.table tr:last-child :is(th, td) { border-bottom: var(--rule-hair) solid var(--color-rule); }
.table th { width: 38%; font: 700 var(--text-title)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); padding-right: var(--space-xl); }
.table td { color: var(--color-ink-2); font-size: var(--text-lead); }

/* questions */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.faq .head { margin-bottom: 0; }
.faq details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-lg); font: 700 var(--text-title)/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-accent); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-lime); }
.faq summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* close: back to the horizon, the person again */
.close { min-height: 92svh; display: grid; align-items: center; padding-block: var(--section-gap) var(--space-3xl); }
.close-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: var(--gap-columns); }
.close-head { height: min(62svh, 560px); }
.close .lead { margin-top: var(--space-md); color: var(--color-ink); }

/* footer: index columns on the night */
footer { background: var(--color-paper); color: var(--color-ink); border-top: var(--rule-hair) solid var(--color-edge); padding-block: var(--space-3xl) var(--space-xl); }
.foot { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) minmax(0, 2fr); gap: var(--gap-columns); }
.foot h3 { font: 700 var(--text-sm)/1.4 var(--font-body); letter-spacing: 0; color: var(--color-ink); margin-bottom: var(--space-sm); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.foot a { color: var(--color-ink-2); text-decoration: none; }
.foot a:hover { color: var(--color-lime); text-decoration: underline; }
.foot a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.foot .wordmark { font-size: var(--text-xl); }
.legal { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }

@media (max-width: 60rem) {
  .bar nav a:not(.btn) { display: none; }
  .hero-grid, .pinned, .statement-grid, .close-grid, .faq { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero-grid { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .hero-head { height: 42svh; order: -1; }
  .statement-head, .close-head { height: 40svh; }
  .js .stage { display: none; }
  .js .panel .shot { display: block; }
  .panel { min-height: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles li:nth-child(3n+2), .js .tiles [data-reveal].is-in:nth-child(3n+2) { transform: none; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > :first-child { grid-column: 1 / -1; }
  .table th, .table td { display: block; width: auto; padding: var(--space-xs) 0; }
  .table td { border-top: 0; padding-bottom: var(--space-lg); }
  .close { min-height: 0; }
  .sheet { padding: var(--space-lg); }
}
@media (max-width: 40rem) { .tiles, .grid4 { grid-template-columns: minmax(0, 1fr); } .tiles li, .well { min-height: 0; } .hero-head { height: 34svh; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-in, .js .tiles [data-reveal], .js .screen[data-rise] { opacity: 1; transform: none; transition: none; }
  .js .tiles [data-reveal]:nth-child(3n+2) { transform: translateY(var(--space-xl)); }
  .tiles li:hover, .js .tiles [data-reveal].is-in:hover { transform: none; }
  .bar, #bg3d, .js .stage .shot { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 60rem) { .js .tiles [data-reveal]:nth-child(3n+2) { transform: none; } }
