/* Physical AI Accelerator page (package.html). Builds on styles.css: same tokens, type, buttons, sections and motion.
   Corners stay square (pixel system); lime marks numbers, allowances and the price card, the page's signature moment. */

/* ---------- Hero ---------- */
.pkg-tag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px;
  border: 1px solid var(--carbon-line); background: var(--carbon-raised);
  font-family: var(--font-pixel); font-size: 0.875rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime);
}
.cursor { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--lime); animation: blink 1.2s steps(2, start) infinite; }
@media (max-width: 899px) { .hero .pkg-tag { display: none; } }
.pkg-hero h1 { font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; margin-top: 20px; }
.pkg-stats-band { background: var(--carbon); padding-bottom: 8px; }
.pkg-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0;
  border-top: 1px solid var(--carbon-line); border-bottom: 1px solid var(--carbon-line);
}
.pkg-stats div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 20px 16px 20px 0; }
.pkg-stats div:nth-child(n+3) { border-top: 1px solid var(--carbon-line); }
.pkg-stats dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.pkg-stats dd { margin: 0; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--lime); }
@media (min-width: 720px) {
  .pkg-stats { grid-template-columns: repeat(4, 1fr); }
  .pkg-stats div:nth-child(n+3) { border-top: 0; }
  .pkg-stats div + div { padding-left: 24px; border-left: 1px solid var(--carbon-line); }
}

/* ---------- Light sections: the site's pixel texture ---------- */
.pkg-textured { position: relative; overflow: clip; isolation: isolate; }
.pkg-textured::before {
  content: ""; position: absolute; inset: -120px 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background: url("../assets/img/pixel-texture-tall.png") center top / max(100%, 1152px) auto repeat-y; image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.pkg-textured--flip::before { transform: scaleX(-1); }
.pkg h2 { max-width: 22ch; }

/* ---------- Shared bits ---------- */

/* ---------- Core package cards ---------- */
.pkg-cards { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 1px; background: var(--carbon-line); border: 1px solid var(--carbon-line); }
.pkg-card { position: relative; padding: 28px 24px 32px; background: var(--carbon); transition: background-color 0.2s; }
.pkg-card:hover { background: var(--carbon-raised); }
.pkg-card::after { content: ""; position: absolute; top: -1px; left: -1px; width: 8px; height: 8px; background: var(--lime); opacity: 0; transition: opacity 0.2s; }
.pkg-card:hover::after { opacity: 1; }
.pkg-card-meta { display: flex; justify-content: space-between; margin: 0 0 20px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.pkg-card-meta span:first-child { color: var(--lime); }
.pkg-card h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0; }
.pkg-card p:last-child { margin: 12px 0 0; color: var(--on-dark-muted); font-size: 0.9688rem; line-height: 1.6; }
@media (min-width: 640px) { .pkg-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pkg-cards { grid-template-columns: repeat(3, 1fr); } .pkg-card { padding: 32px 32px 40px; } }

/* ---------- 7-day journey ---------- */
.journey-layout { display: grid; gap: 40px; }
.journey { list-style: none; margin: 0; padding: 0; }
.journey li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 32px; }
.journey li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--carbon); }
.step {
  display: grid; place-items: center; width: 56px; height: 56px; background: var(--carbon); color: var(--lime);
  font-family: var(--font-pixel); font-size: 1rem; line-height: 1;
}
.when { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-light-muted); }
.journey h3 { margin-top: 4px; font-size: 1.375rem; text-transform: uppercase; letter-spacing: 0; }
.journey p { margin: 6px 0 0; color: var(--on-light-muted); }
.journey--tight li { padding-bottom: 20px; }
.journey--tight h3 { font-size: 1.125rem; }
@media (min-width: 900px) {
  .journey-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 8vw, 128px); align-items: start; }
  .journey-head { position: sticky; top: calc(var(--header-h) + 10vh); }
}


/* ---------- What you get ---------- */
.support { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.support li { display: grid; grid-template-columns: 48px 1fr; gap: 6px 18px; align-items: start; padding: 20px; background: var(--carbon); border: 1px solid var(--carbon-line); }
.support .step { width: 48px; height: 48px; background: var(--carbon-raised); border: 1px solid var(--carbon-line); grid-row: span 2; }
.support h3, .support h4 { margin: 0; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.01em; }
.support p { margin: 4px 0 0; font-size: 0.9375rem; color: var(--on-dark-muted); }
.inside .support { margin: 0; gap: 8px; }
.allow { grid-column: 2; justify-self: start; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--lime); }
@media (min-width: 720px) {
  .support li { grid-template-columns: 48px 1fr auto; align-items: center; padding: 20px 28px 20px 20px; }
  .support .step { grid-row: auto; }
  .allow { grid-column: 3; justify-self: end; font-size: 0.875rem; white-space: nowrap; }
}

/* ---------- Offer / price ---------- */
.pkg-offer { position: relative; overflow: hidden; isolation: isolate; }
.pkg-offer::before {
  content: ""; position: absolute; inset: -140px 0; z-index: -1; pointer-events: none;
  background: url("../assets/img/pixel-texture-dark.png") center / cover no-repeat; image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.offer-grid { display: grid; gap: 40px; margin-top: 48px; align-items: start; }
.price-card { padding: 32px 24px; background: var(--lime); color: var(--carbon); box-shadow: 10px 10px 0 #2c2c2a; }
.price-label { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: 12px 0 0; padding-bottom: 24px; border-bottom: 1px solid rgba(17, 17, 17, 0.25); }
.price-num { font-size: clamp(3.5rem, 2.4rem + 5vw, 6rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.price-was { display: grid; gap: 6px; }
.price-was s { font-size: 1.75rem; font-weight: 800; line-height: 1; text-decoration-thickness: 3px; opacity: 0.7; }
.price-unit { font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; }
.price-body h3 { margin-top: 24px; font-size: 1.375rem; }
.price-note { margin: 16px 0 24px; font-size: 0.9688rem; line-height: 1.6; }
.price-small { margin: 20px 0 0; font-size: 0.8125rem; line-height: 1.6; color: rgba(17, 17, 17, 0.75); }
.button--dark { width: 100%; background: var(--carbon); color: var(--paper); border: 0; }
.button--dark:hover { background: #262626; color: var(--lime); }
.button--dark:focus-visible { outline-color: var(--carbon); }
@media (min-width: 640px) { .price-card { padding: 40px 40px 36px; } }
@media (min-width: 960px) { .offer-grid { grid-template-columns: 1.25fr 0.75fr; gap: 56px; } .price-card { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 40px; }
.faq { border-top: 1px solid var(--carbon-line); }
.faq details { border-bottom: 1px solid var(--carbon-line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
/* pixel plus / minus */
.faq summary::after {
  content: ""; flex: none; width: 15px; height: 15px; background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h1v5H2zM0 2h5v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h1v5H2zM0 2h5v1H0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq details[open] summary::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath d='M0 2h5v1H0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath d='M0 2h5v1H0z'/%3E%3C/svg%3E");
}
.faq summary:hover { color: var(--lime); }
.faq details p { margin: 0 0 24px; color: var(--on-dark-muted); max-width: 60ch; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 88px; align-items: start; } }

/* ---------- Final CTA ---------- */
.pkg-final { text-align: left; }
.pkg-final h2 { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.75rem); max-width: 18ch; }

/* ---------- Problem ---------- */
.why { display: grid; gap: 40px; }
.pain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper-line); }
.pain li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--paper-line); }
.pain-time { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pain li:last-child .pain-time { color: var(--slate); }
.pain p { margin: 0; font-size: 1.125rem; color: var(--on-light-muted); }
.why-fix { margin: 32px 0 0; padding: 20px 24px; background: var(--carbon); color: var(--on-dark-muted); font-size: 1.0625rem; }
.why-fix b { color: var(--lime); }
@media (min-width: 900px) { .why { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 8vw, 128px); align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .pkg-card, .pkg-card::after { transition: none; }
}

.pkg .nav-links .button { white-space: nowrap; }

/* ---------- Pixel icons (drawn on whole-cell grids, see package.html) ---------- */
.px { display: block; fill: currentColor; shape-rendering: crispEdges; width: calc(var(--c) * var(--cell, 4px)); height: calc(var(--r) * var(--cell, 4px)); }
.px .px-acc { fill: var(--lime); }
.on-light .px .px-acc { fill: var(--carbon); }
.step--icon { color: var(--paper); }
.step--icon .px { --cell: 4px; }
.step--icon .px .px-acc, .on-light .step--icon .px .px-acc { fill: var(--lime); }
.support .step--icon .px { --cell: 3px; }

/* Long-term offer: the pamphlet's "keep renting robot time" block, scaled up */
.keep { display: grid; gap: 20px; align-items: center; margin-top: 56px; padding: 28px 24px; background: var(--carbon); border: 2px dashed var(--lime); }
.keep-icon { display: grid; place-items: center; width: 72px; height: 72px; background: var(--lime); color: var(--carbon); }
.keep-icon svg { width: 36px; height: 36px; }
.keep-label { margin: 0 0 10px; font-family: var(--font-pixel); font-size: 0.875rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); }
.keep h3 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 24ch; }
.keep-copy > p:last-child { margin: 14px 0 0; max-width: 56ch; color: var(--on-dark-muted); font-size: 1.0625rem; }
.keep-price { display: grid; gap: 4px; margin: 0; padding: 16px 20px; background: var(--lime); color: var(--carbon); }
.keep-price b { font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.keep-price span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 900px) {
  .keep { grid-template-columns: auto 1fr auto; gap: 40px; padding: 40px 44px; }
  .keep-icon { width: 96px; height: 96px; }
  .keep-icon svg { width: 48px; height: 48px; }
}
