/* ChaseKit landing (И-01): page CSS, only what sits inside a visual and the kit lacks,
   plus one --p-h for the steps card group (taste-skill references/system.md). */

/* the hero's product window on the lit ground */
.hero__media--ui { background: var(--ground-bg); }
.hero__media--ui > .stage { position: absolute; inset: 0; }
.ui-win__crumb .mark { width: 14px; height: 14px; margin-right: 6px; }

/* the split frames take the lit ground at the split's 5:4 (frame--lit alone is 2:1) */
.frame--split.frame--lit { --ratio: 80%; }
@media (max-width: 639px) { .frame--split.frame--lit { --ratio: 64%; } }

/* steps: the card lines in ink (sections-library.md, steps) */
#how .card > p { color: var(--ink); }

/* the name across the .wrap: IBM Plex's capitals need a little more than the kit's .86 line */
.close__word { line-height: 1.04; }

/* the split frames fill most of their screen */
@media (min-width: 1024px) { #problem .frame--split, #preorder .frame--split { --ratio: 100%; } }

/* what every plan has, once, under the cards */
.plans-common { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
@media (min-width: 1024px) { .plans-common > .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the tablet (640 to 1023): sections whose stacked content needs two screens there */
@media (min-width: 640px) and (max-width: 1023px) {
  #how { --h: 2; }
  /* the plans stay one screen: each card a row, name and price left, its lines and button right */
  #pricing .card--plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "name lines" "price action"; gap: var(--s-2) var(--s-5); align-items: start; }
  #pricing .card--plan > h3 { grid-area: name; }
  #pricing .card--plan > p.muted { display: none; }
  #pricing .card--plan > .price { grid-area: price; align-self: end; }
  #pricing .card--plan > .checks { grid-area: lines; margin-top: 0; }
  #pricing .card--plan > .btn { grid-area: action; align-self: end; }
  #pricing .plans-common { display: none; }
  #problem .frame--split { --ratio: 52%; }
  #preorder .frame--split { --ratio: 64%; }
}

/* steps: one panel height for the group */
#how .panel { --p-h: 336px; }
@media (max-width: 639px) { #how .panel { --p-h: 260px; } }

/* step 1: the template picker (inside its visual) */
.ck-templates { padding-bottom: 12px; }
.ck-templates__list { list-style: none; margin: 0; padding: 4px 12px 0; display: grid; gap: 8px; }
.ck-templates__row { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 12px; height: 48px; padding: 0 12px;
  border: 1px solid var(--u-border); border-radius: var(--u-r2); font-size: 13px; color: var(--u-ink); }
.ck-templates__row.is-on { border-color: var(--u-accent); box-shadow: inset 0 0 0 1px var(--u-accent); background: var(--u-tint); }
.ck-templates__radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--u-line-2); }
.is-on > .ck-templates__radio { border: 5px solid var(--u-accent); }
.ck-templates__name { font-weight: 500; }
.ck-templates__items { color: var(--u-muted); font-size: 12px; }

/* step 3: the ZIP row under the finished list (inside its visual) */
.ck-zip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 16px 16px; padding: 10px 12px;
  border: 1px solid var(--u-border); border-radius: var(--u-r2); font: 500 12px/1.3 var(--ui-mono, var(--font-mono)); color: var(--u-ink); }

/* the founder reservation (inside its visual) */
.ck-receipt .mark { width: 16px; height: 16px; }
.ck-receipt__rows { margin: 0; padding: 4px 16px 16px; display: grid; }
.ck-receipt__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--u-line); font-size: 13px; }
.ck-receipt__rows > div:last-child { border-bottom: 0; }
.ck-receipt__rows dt { color: var(--u-muted); }
.ck-receipt__rows dd { margin: 0; font-weight: 500; color: var(--u-ink); font-variant-numeric: tabular-nums; }

/* the waitlist form in the close's head row, on the page's split pair */
.waitlist { align-items: start; }
.waitlist .form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.waitlist .form > .field { grid-column: 1; }
.waitlist .form > .btn-row { grid-column: 2; }
@media (max-width: 639px) { .waitlist .form { grid-template-columns: minmax(0, 1fr); } .waitlist .form > .btn-row { grid-column: 1; } }
.waitlist .form .t-small { color: var(--muted); }
.waitlist .form .link { color: inherit; }
.hp-field[hidden] { display: none; }

/* Keep all answers and the real contact address available on small screens. */

/* The content sets the rhythm after the full-screen opening. Long, empty bands
   made the pricing and founder sections feel unfinished at laptop widths. */
main > .section:not(.doc-page) { height: auto; min-height: 0; padding-block: 112px 128px; }

/* the small pages (privacy, thanks) */
.doc-page { height: auto; min-height: 100svh; }
.doc-page h2 { font-size: var(--t-h3); margin-top: var(--s-5); }
.doc-footer { height: auto; padding-block: var(--s-8); }

/* Brand identity: the vector logo is the source for the hero's sculptural mark. */
.brand-logo { display: block; width: 174px; height: auto; }
.brand-logo--footer { width: 168px; }
.nav__logo:has(.brand-logo) { display: inline-flex; align-items: center; }

/* A quiet editorial stage lets the product remain legible and the 3D mark be memorable. */
.hero--premium {
  --ink: #f6f5f0;
  --muted: #bdcfc8;
  --accent: #97d4c4;
  --action: #97d4c4;
  --action-ink: #182221;
  color: var(--ink);
  background: #182221;
  position: relative;
  isolation: isolate;
}
.hero--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 76% 30%, rgba(78, 134, 124, .16), transparent 47%);
}
.hero--premium .hero__lead { color: #c1d1ca; }
.hero--premium .hero__kicker { color: #97d4c4; }
.hero--premium .hero__media--ui {
  background: radial-gradient(ellipse at 56% 26%, #34534c 0, #233a35 36%, #192a27 72%);
  border: 1px solid rgba(193, 229, 216, .17);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.hero--premium .hero__media--ui::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image: linear-gradient(rgba(218, 246, 235, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(218, 246, 235, .06) 1px, transparent 1px);
  background-size: 35px 35px;
}
.hero__preview-note { position: absolute; top: 20px; left: 22px; z-index: 3; color: #bad4ca; font: 500 10px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.hero--premium .hero__media--ui > .stage { inset: 52% 0 0; z-index: 1; }
.hero--premium .hero__media--ui > .stage { -webkit-mask: none; mask: none; }
.hero--premium .hero__media--ui > .stage .at-corner { top: 0; left: 6%; width: 92%; }
.hero--premium .ui-win {
  --fx-bg: #fffefb; --fx-surface: #f3f5f2; --fx-ink: #182221; --fx-muted: #52635e; --fx-accent: #367a72;
  width: 100%; min-width: 520px; box-shadow: 0 22px 75px rgba(0,0,0,.36);
}
.hero--premium .ly-float { --ink: #182221; --muted: #52635e; --bg: #f6f5f0; z-index: 3; bottom: 24px; left: 24px; }
.brand-sculpture { position: absolute; inset: 2% 7% auto auto; width: 63%; aspect-ratio: 1; z-index: 2; perspective: 850px; pointer-events: auto; }
.brand-sculpture__orbit { position: absolute; inset: 5% 5% 11%; transform-style: preserve-3d; animation: sculpture-drift 9s ease-in-out infinite alternate; }
.brand-sculpture__rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(-18deg + var(--pointer-x, 0deg))) rotateY(calc(-28deg + var(--pointer-y, 0deg))); transition: transform 550ms cubic-bezier(.18,.7,.2,1); }
.brand-sculpture__slice { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; backface-visibility: visible; filter: drop-shadow(0 1px 0 rgba(255,255,255,.05)); }
.brand-sculpture__slice:last-child { filter: drop-shadow(0 0 12px rgba(143,212,191,.16)); }
.brand-sculpture__shadow { position: absolute; left: 24%; right: 13%; bottom: 10%; height: 8%; border-radius: 50%; background: #071411; filter: blur(20px); opacity: .7; transform: rotate(-10deg); }
.brand-sculpture__caption { position: absolute; top: 1%; right: 0; font: 500 10px/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #a9c8bc; }
@keyframes sculpture-drift { from { translate: 0 6px; } to { translate: 0 -7px; } }
@media (max-width: 1023px) {
  .hero--premium .hero__media--ui > .stage { inset: 52% 0 0; }
  .brand-sculpture { width: min(49%, 380px); inset: 0 5% auto auto; }
}
@media (max-width: 639px) {
  .hero--premium .hero__media--ui { min-height: 300px; }
  .hero--premium .hero__media--ui > .stage { inset: 48% 0 0; }
  .hero--premium .hero__media--ui > .stage .at-corner { left: 5%; right: 5%; width: 90%; top: 0; }
  .hero--premium .ui-win { min-width: 0; }
  .hero--premium .ly-float { display: none; }
  .brand-sculpture { width: 56%; inset: -9% 9% auto auto; }
  .brand-sculpture__caption { display: none; }
  .hero__preview-note { top: 41%; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-sculpture__orbit { animation: none; }
  .brand-sculpture__rig { transition: none; }
}

/* The marketing story follows its content on phones instead of stretching every
   section to a full screen. This also keeps the final CTA close to the footer. */
@media (max-width: 639px) {
  main > .section:not(.doc-page), footer.closing { height: auto; min-height: 0; padding-block: 76px 84px; }
  main > .section:not(.doc-page) > .wrap, footer.closing > .wrap { height: auto; }
  footer.closing > .wrap { display: flex; flex-direction: column; gap: 52px; }
  .closing__cta { gap: 40px; }
  .close__word { margin-top: 20px; }
  #pricing .card--plan { min-height: 0; }
}
@media (max-width: 359px) {
  .nav--centre .nav__bar { display: flex; gap: 8px; }
  .nav.nav--centre:not(.is-open) .nav__actions { display: none; }
  .nav--centre .nav__toggle { margin-left: auto; }
}
@media (max-width: 359px) and (scripting: none) {
  .nav.nav--centre:not(.is-open) .nav__actions { display: flex; }
}
