/* ---------- A site that sells ----------
   The page is a panel too: the chassis quiet, a module where something stands, and light only where something
   happens: the cobalt where a person presses, the device tones where a device works. Every size follows the
   person's text size; every motion stops for whoever asks for less. */

/* A page that sells takes its whole width: its sections set their own measure. */
.p-content:has(> .p-hero) { max-width: 1200px; gap: var(--s-8); }
.p-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* The opening: the statement, then the figure; side by side from a desk. A faint grid of the chassis under it, and
   one glow of the cobalt where the figure stands. */
.p-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; padding: var(--s-5) 0 var(--s-4); }
.p-hero::before { content: ''; position: absolute; inset: -32px -16px auto -16px; height: 560px; z-index: 0; pointer-events: none; background-image: radial-gradient(circle at 72% 42%, color-mix(in srgb, var(--c-accent) 16%, transparent), transparent 52%), radial-gradient(var(--c-hair-strong) 1px, transparent 1.2px); background-size: auto, 22px 22px; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.p-hero > * { position: relative; z-index: 1; min-width: 0; }
.p-hero-words { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
.p-hero-title { margin: 0; font-family: var(--font-display); font-weight: 680; letter-spacing: -.045em; line-height: .98; font-size: clamp(calc(40px * var(--access-text-size, 1)), 9.5cqi, calc(68px * var(--access-text-size, 1))); text-wrap: balance; hyphens: manual; }
.p-hero-lead { margin: 0; font-size: var(--t-md); line-height: 1.55; color: var(--c-muted); max-width: 52ch; text-wrap: pretty; }
.p-hero-note { margin: 0; font-size: var(--t-xs); color: var(--c-faint); }
.p-hero .p-actions { margin-top: var(--s-2); }
.p-hero .p-actions .p-btn { min-height: max(48px, var(--press)); padding: 0 22px; font-size: var(--t-sm); }
@container desk (min-width: 1200px) {
  .p-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7); padding: var(--s-7) 0 var(--s-5); }
  .p-hero--alone { grid-template-columns: minmax(0, 1fr); }
}

/* A stage: the first part whole, the next held up over its corner. */
.p-stage { position: relative; padding: 0 0 var(--s-5); }
.p-stage { display: flex; flex-direction: column; align-items: center; }
.p-stage > :first-child { align-self: stretch; }
.p-stage > :nth-child(n + 2) { position: relative; width: min(72%, 240px); margin-top: calc(var(--s-7) * -1); filter: drop-shadow(0 24px 40px rgba(9, 13, 26, .28)); }
@container tablet (min-width: 720px) {
  .p-stage { display: block; }
  .p-stage > :first-child { margin-right: min(12%, 56px); }
  .p-stage > :nth-child(n + 2) { position: absolute; right: -20px; bottom: -8px; width: min(36%, 210px); margin: 0; }
}

/* A device around real screens: a phone's bezel or a window's bar; what it holds drawn smaller, as the device shows it. */
.p-device { --access-text-size: .86; display: flex; flex-direction: column; overflow: hidden; background: var(--c-chassis); color: var(--c-ink); }
.p-device--phone { border-radius: 34px; padding: 10px; background: var(--c-brand-tile); box-shadow: inset 0 0 0 1px var(--c-hair-strong), var(--c-float); }
.p-device--phone .p-device-screen { border-radius: 26px; background: var(--c-chassis); padding: 34px var(--s-3) var(--s-4); min-height: 340px; }
.p-device-notch { position: absolute; }
.p-device--phone { position: relative; }
.p-device--phone .p-device-notch { left: 50%; top: 18px; width: 64px; height: 18px; margin-left: -32px; border-radius: 10px; background: var(--c-brand-tile); z-index: 2; }
.p-device--desk { border-radius: var(--r-module); box-shadow: inset 0 0 0 1px var(--c-hair-strong), var(--c-float); }
.p-device-bar { display: flex; align-items: center; gap: var(--s-3); height: 34px; padding: 0 var(--s-3); background: var(--c-module); box-shadow: inset 0 -1px 0 var(--c-hair); }
.p-device-dots { display: inline-flex; gap: 6px; }
.p-device-dots > span { width: 9px; height: 9px; border-radius: 50%; background: var(--c-idle); }
.p-device-label { font-size: var(--t-xs); color: var(--c-muted); font-weight: 500; }
.p-device-screen { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); min-width: 0; }

/* A chapter: words beside a figure; the figure first where flipped and there is room. */
.p-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: center; scroll-margin-top: 80px; }
.p-story-words { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; max-width: 520px; }
.p-story-title { margin: 0; font-family: var(--font-display); font-weight: 660; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(calc(30px * var(--access-text-size, 1)), 5cqi, calc(46px * var(--access-text-size, 1))); text-wrap: balance; }
.p-story-text { margin: 0; font-size: var(--t-md); line-height: 1.55; color: var(--c-muted); text-wrap: pretty; }
.p-story-points { margin: var(--s-1) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.p-story-point { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-sm); }
.p-story-point > .p-icon, .p-plan-items .p-icon { flex: none; margin-top: 2px; color: var(--c-accent); }
.p-story-figure { min-width: 0; }
@container tablet (min-width: 720px) {
  .p-story { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7); }
  .p-story--flip .p-story-figure { order: -1; }
  .p-story--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

/* Pretorio's figures: tiles on the module, filaments in the hairline, light in the device tones. */
.p-scene { margin: 0; padding: var(--s-4); border-radius: calc(var(--r-module) + 6px); background: var(--c-module); box-shadow: inset 0 0 0 1px var(--c-hair), var(--c-float); }
.p-scene-art { display: block; width: 100%; height: auto; overflow: visible; }
.p-fig-tile { fill: var(--c-sunk); stroke: var(--c-hair-strong); stroke-width: 1; }
.p-fig-tile--lit { fill: var(--c-module); stroke: color-mix(in srgb, var(--c-accent) 55%, transparent); stroke-width: 1.5; }
.p-fig-screen { fill: var(--c-lcd); }
.p-fig-bay { fill: var(--c-sunk); stroke: var(--c-hair); }
.p-fig-prompt { fill: none; stroke: var(--c-lcd-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-fig-typed { stroke: var(--c-lcd-title); stroke-width: 4; stroke-linecap: round; }
.p-fig-typed--dim { stroke: var(--c-lcd-dim); opacity: .55; }
.p-fig-line { fill: none; stroke: var(--c-hair-strong); stroke-width: 1.5; }
.p-fig-line--in, .p-fig-line--flow, .p-fig-line--live { stroke: color-mix(in srgb, var(--c-accent) 60%, transparent); stroke-dasharray: 4 6; animation: p-fig-flow 1.6s linear infinite; }
.p-fig-line--ended { stroke: var(--c-idle); stroke-dasharray: 2 8; }
@keyframes p-fig-flow { to { stroke-dashoffset: -20; } }
.p-fig-ring { fill: color-mix(in srgb, var(--c-accent) 5%, transparent); stroke: color-mix(in srgb, var(--c-accent) 22%, transparent); stroke-dasharray: 2 6; }
.p-fig-face { fill: var(--c-module); stroke: var(--c-hair-strong); }
.p-fig-person--ended { opacity: .5; }
.p-fig-chip rect { fill: var(--c-accent-soft); stroke: color-mix(in srgb, var(--c-accent) 35%, transparent); }
.p-fig-chip text { fill: var(--c-accent); }
.p-fig-chip--ended rect { fill: var(--c-sunk); stroke: var(--c-hair-strong); }
.p-fig-chip--ended text { fill: var(--c-muted); }
.p-scene-art text { font-family: var(--font-body); }
.p-fig-word { fill: var(--c-ink); font-size: 17px; font-weight: 620; letter-spacing: -.01em; }
.p-fig-small { fill: var(--c-ink); font-size: 14px; font-weight: 520; }
.p-fig-tiny { fill: var(--c-muted); font-size: 12px; font-weight: 550; }
.p-fig-initials { fill: var(--c-ink); font-size: 14px; font-weight: 640; }
.p-fig-app text { fill: var(--c-muted); }
.p-fig-light { fill: var(--c-idle); }
.p-fig-halo { fill: var(--c-idle); opacity: 0; }
.p-fig-heat { fill: var(--c-heat-glow); } .p-fig-cool { fill: var(--c-cool-glow); } .p-fig-fine { fill: var(--c-ok-glow); } .p-fig-alert { fill: var(--c-alert-glow); }
.p-fig-halo.p-fig-heat, .p-fig-halo.p-fig-cool, .p-fig-halo.p-fig-fine, .p-fig-halo.p-fig-alert { opacity: .18; animation: p-fig-breathe 2.8s ease-in-out infinite; }
@keyframes p-fig-breathe { 50% { opacity: .05; } }
.p-fig-mark .p-mark-tile { fill: var(--c-brand-tile); } .p-fig-mark .p-mark-stem { fill: var(--c-brand-stem); } .p-fig-mark .p-mark-lit { fill: var(--c-brand-lit); }

/* Promises at a glance. */
.p-signs { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.p-sign { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-module); background: var(--c-module); box-shadow: inset 0 0 0 1px var(--c-hair), var(--c-lift); }
.p-sign-tile { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent); margin-bottom: var(--s-2); }
.p-sign-title { font-size: var(--t-md); font-weight: 620; letter-spacing: -.01em; }
.p-sign-text { margin: 0; color: var(--c-muted); font-size: var(--t-sm); line-height: 1.5; }

/* What stays free, beside what is offered, the offer lit. */
.p-price { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@container tablet (min-width: 720px) { .p-price { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.p-plan { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6) var(--s-5); border-radius: calc(var(--r-module) + 6px); background: var(--c-sunk); box-shadow: inset 0 0 0 1px var(--c-hair); }
.p-plan--lit { background: var(--c-module); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-accent) 60%, transparent), var(--c-float); }
.p-plan-title { margin: 0; font-size: var(--t-md); font-weight: 620; }
.p-plan-price { margin: 0; display: flex; align-items: baseline; gap: var(--s-2); }
.p-plan-amount { font-family: var(--font-display); font-size: calc(44px * var(--access-text-size, 1)); font-weight: 680; letter-spacing: -.04em; line-height: 1; }
.p-plan-per { color: var(--c-muted); font-size: var(--t-sm); }
.p-plan-text { margin: 0; color: var(--c-muted); }
.p-plan-items { margin: var(--s-2) 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.p-plan-items > li { display: flex; gap: var(--s-2); align-items: flex-start; }
.p-plan .p-plan-items .p-icon { color: var(--c-muted); }
.p-plan--lit .p-plan-items .p-icon { color: var(--c-accent); }
.p-plan-note { margin: 0; font-size: var(--t-xs); color: var(--c-muted); }
.p-plan > .p-btn, .p-plan-say > .p-btn { width: 100%; min-height: max(48px, var(--press)); }
@container tablet (min-width: 720px) { .p-price--one { grid-template-columns: minmax(0, 1fr); } }
.p-plan-say { display: flex; flex-direction: column; gap: var(--s-3); }
.p-plan--one .p-plan-items { margin: 0; padding-top: var(--s-4); box-shadow: inset 0 1px 0 var(--c-hair); flex: none; }
@container tablet (min-width: 720px) {
  .p-plan--one { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-6); align-items: center; padding: var(--s-7) var(--s-6); }
  .p-plan--one .p-plan-items { padding: 0 0 0 var(--s-6); box-shadow: inset 1px 0 0 var(--c-hair); }
}

/* The closing call: the one place the page is lit whole. */
.p-band { display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-start; padding: var(--s-7) var(--s-5); border-radius: calc(var(--r-module) + 10px); background: var(--c-accent); color: var(--c-on-accent); background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.16), transparent 45%), radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px); background-size: auto, 20px 20px; }
.p-band-words { display: flex; flex-direction: column; gap: var(--s-2); }
.p-band-title { margin: 0; font-family: var(--font-display); font-size: clamp(calc(30px * var(--access-text-size, 1)), 5cqi, calc(48px * var(--access-text-size, 1))); font-weight: 680; letter-spacing: -.035em; line-height: 1.02; }
.p-band-text { margin: 0; font-size: var(--t-md); opacity: .86; max-width: 52ch; }
.p-band .p-btn { background: var(--c-on-accent); color: var(--c-accent) !important; box-shadow: none; min-height: max(48px, var(--press)); }
.p-band .p-btn--secondary, .p-band .p-btn--quiet { background: transparent; color: var(--c-on-accent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-on-accent) 45%, transparent); }
@container tablet (min-width: 720px) { .p-band { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--s-7); } }

/* What is bought, beside the form that buys it. */
.p-order { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); border-radius: calc(var(--r-module) + 6px); background: var(--c-module); box-shadow: inset 0 0 0 1px var(--c-hair), var(--c-float); }
.p-order-head { display: flex; gap: var(--s-3); align-items: center; }
.p-order-mark .p-mark { width: 44px; height: 44px; display: block; }
.p-order-what { display: flex; flex-direction: column; gap: 2px; }
.p-order-title { font-size: var(--t-md); font-weight: 620; }
.p-order-price { display: flex; align-items: baseline; gap: var(--s-2); }
.p-order-price .p-plan-amount { font-size: calc(28px * var(--access-text-size, 1)); }
.p-order .p-plan-items { margin: 0; padding-top: var(--s-4); box-shadow: inset 0 1px 0 var(--c-hair); }
.p-order-lines { margin: 0; display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-4); box-shadow: inset 0 1px 0 var(--c-hair); }
.p-order-line { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--t-sm); }
.p-order-k { color: var(--c-muted); }
.p-order-v { font-weight: 550; text-align: right; }
.p-order-note { margin: 0; display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-xs); color: var(--c-muted); }
.p-order-note > .p-icon { flex: none; }

/* What was bought now stands: a light that came on. */
.p-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3); padding: var(--s-6) 0 var(--s-4); }
.p-done-light { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; color: var(--c-ok); background: color-mix(in srgb, var(--c-ok-glow) 14%, var(--c-module)); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c-ok-glow) 8%, transparent), 0 0 48px color-mix(in srgb, var(--c-ok-glow) 40%, transparent); margin-bottom: var(--s-2); }
.p-done-light > .p-icon { width: 34px; height: 34px; stroke-width: 2.25; }
.p-done-title { margin: 0; font-family: var(--font-display); font-size: var(--t-xl); font-weight: 660; letter-spacing: -.03em; }
.p-done-text { margin: 0; color: var(--c-muted); max-width: 44ch; }
.p-done > :not(.p-done-light):not(.p-done-title):not(.p-done-text) { align-self: stretch; text-align: left; }
.p-hero-figure { min-width: 0; }
.p-fig-idle { fill: var(--c-idle); }
.p-fig-home, .p-fig-device, .p-fig-laptop, .p-fig-machine, .p-fig-person { transform-box: fill-box; transform-origin: center; }
.p-device--desk .p-places { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.p-intro { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; max-width: 640px; margin-bottom: var(--s-2); }
.p-intro-title { margin: 0; font-family: var(--font-display); font-weight: 660; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(calc(30px * var(--access-text-size, 1)), 5cqi, calc(46px * var(--access-text-size, 1))); text-wrap: balance; }
.p-intro-text { margin: 0; font-size: var(--t-md); line-height: 1.55; color: var(--c-muted); }
.p-intro + * { margin-top: calc(var(--s-5) * -1); }
/* On a phone a figure stands narrow: its words grow in the drawing's units, so they read at the same size. */
@container app (max-width: 719px) {
  .p-fig-small, .p-fig-initials { font-size: 22px; }
  .p-fig-tiny { font-size: 18px; }
  .p-fig-word { font-size: 24px; }
}
