/* Page composition — Stripe-leaning spacing & sticky pricing */

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  background:
    radial-gradient(1200px 480px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--bg);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 3rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__note {
  margin-top: 1.1rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.who-card {
  padding: 1.5rem;
}

.who-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.who-card p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* Product tour — screen showcase / slideshow */
.showcase {
  background: var(--bg);
  overflow: hidden;
}

.showcase--footer {
  background: var(--bg-mute);
  border-top: 1px solid var(--line);
}

.showcase__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.showcase__tab {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition:
    background-color 0.35s var(--ease, ease),
    border-color 0.35s var(--ease, ease),
    color 0.35s var(--ease, ease),
    opacity 0.35s var(--ease, ease);
}

.showcase__tab:hover {
  border-color: color-mix(in srgb, var(--accent-text) 40%, var(--line));
  color: var(--ink);
}

.showcase__tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

.showcase__tabs.is-fading .showcase__tab.is-active {
  opacity: 0.35;
}

.showcase__stage {
  position: relative;
  min-height: 16rem;
  padding: 0.5rem 2.75rem 2.5rem;
}

.showcase__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-55%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.showcase__nav:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}

.showcase__nav:active {
  transform: translateY(-55%) scale(0.96);
}

.showcase__nav--prev {
  left: 0;
}

.showcase__nav--next {
  right: 0;
}

.showcase__desktop {
  position: relative;
  width: min(100%, 52rem);
  margin: 0 auto;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.showcase__chrome {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: color-mix(in srgb, var(--ink) 4%, var(--bg));
  border-bottom: 1px solid var(--line);
}

.showcase__chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line);
}

.showcase__chrome span:nth-child(1) { background: #f87171; }
.showcase__chrome span:nth-child(2) { background: #fbbf24; }
.showcase__chrome span:nth-child(3) { background: #34d399; }

.showcase__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 900;
  background: var(--bg-soft);
}

.showcase__desktop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  transition: opacity 0.45s var(--ease, ease);
  pointer-events: none;
}

.showcase__desktop-img.is-active {
  opacity: 1;
  z-index: 1;
}

.showcase__desktop-img.is-contain {
  object-fit: contain;
  object-position: center;
  background: var(--bg-soft);
}

.showcase__phone {
  position: absolute;
  right: max(0.5rem, 4%);
  bottom: 0;
  width: min(32%, 11.5rem);
  border-radius: 1.15rem;
  border: 3px solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  z-index: 2;
}

.showcase__phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.showcase__phone[hidden],
.showcase__phone.is-empty {
  display: none;
}

.showcase__caption {
  margin: 1rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: opacity 0.3s ease;
}

.showcase__caption.is-fading {
  opacity: 0;
}

@media (max-width: 720px) {
  .showcase__stage {
    padding-inline: 2.35rem;
  }

  .showcase__nav {
    width: 2.4rem;
    height: 2.4rem;
  }

  .showcase__phone {
    width: min(38%, 9.5rem);
    right: 0.35rem;
  }
}

@media (min-width: 900px) {
  .showcase__stage {
    padding: 0.5rem 3.25rem 3rem;
  }
  .showcase__phone {
    width: 12.5rem;
    right: 6%;
    bottom: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__desktop-img,
  .showcase__tab,
  .showcase__caption,
  .pill,
  .pill::before {
    transition: none;
  }
}

/* Numbered product list — Stripe-like clarity */
.feature-step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
}

.feature-step .num {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  background: #fff;
  border: 2px solid #00000010;
  border-radius: 999px;
  max-width: fit-content;
  min-width: 3.5rem;
  min-height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: normal;
}

.feature-step h3 {
  font-size: var(--fs-md);
  margin-bottom: 0.35rem;
}

.feature-step p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.feature-step .hint {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature-step__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 12.5rem;
  margin-top: 0.85rem;
  object-fit: contain;
  object-position: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.setup-band {
  background: #222;
  color: var(--on-dark);
}

.setup-band .eyebrow {
  color: var(--accent-on-dark);
}

.setup-band .lead {
  color: var(--on-dark-muted);
}

.setup-band .btn-soft {
  background: color-mix(in srgb, var(--on-dark) 14%, transparent);
  color: var(--on-dark);
}

.setup-band .title {
  color: var(--on-dark);
}

.pilot-apply {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .pilot-apply {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }
}

.pilot-apply__contact {
  margin: 1rem 0 1.25rem;
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}

.pilot-apply__contact a {
  color: var(--accent-on-dark);
  font-weight: 600;
  text-decoration: none;
}

.pilot-apply__contact a:hover {
  text-decoration: underline;
}

.pilot-form {
  background: var(--bg);
  color: var(--ink);
  /* border: 1px solid var(--line); 
  padding: 1.5rem;*/
  --form-fields-max: none;
  --form-label-color: var(--ink);
  --form-required-color: var(--accent);
}


/* .form-group {
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: inline-block;
  max-width: 15rem;
  min-width: 10rem;
}



@container form (max-width: 300px) {
  .form {
    padding: 2.5rem 2.5rem 2rem 2rem;
  }

  .form-group {
    flex-direction: row;
  }
} */

form.card{padding: 2.5rem 2.5rem 2rem 2rem;}

form {
  container-type: inline-size;
  container-name: form;
}

.form-group {
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column; 
}

.form-group label {
  display: inline-block;
  max-width: 15rem;
  min-width: 10rem;
}

@container form (min-width: 400px) {

  .form-group {
    flex-direction: row;
  }
}



.pilot-form .req {
  color: var(--accent);
}

.pilot-form input,
.pilot-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
}

.pilot-form input:focus,
.pilot-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.pilot-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-group{
  margin: 0 0 1rem 0; 
}


.pilot-form .form-group__control-row input {
  max-width: 8rem;
}

.pilot-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pilot-form__captcha {
  min-height: 65px;
}

.pilot-form__status {
  margin: 0;
  font-size: var(--fs-sm);
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
}

.pilot-form__status.is-error {
  background: color-mix(in srgb, #b91c1c 12%, transparent);
  color: #991b1b;
}

.pilot-form__status.is-ok {
  background: color-mix(in srgb, #15803d 12%, transparent);
  color: #166534;
}

.pilot-form__note {
  margin: 1rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.pilot-form__note a {
  color: var(--accent-text, var(--accent));
  font-weight: 600;
  text-decoration: none;
}

.pilot-form__note a:hover {
  text-decoration: underline;
}

/* Pricing */
.billing-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.billing-row span {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}

.billing-row span.is-on {
  color: var(--ink);
}

.toggle {
  width: 2.85rem;
  height: 1.55rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-mute);
  position: relative;
  cursor: pointer;
  padding: 0;
}

.toggle.is-on {
  background: var(--accent);
}

.toggle i {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--motion) var(--ease);
}

.toggle.is-on i {
  transform: translateX(1.25rem);
}

.pricing-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .pricing-layout {
    grid-template-columns: 1.35fr minmax(17rem, 0.85fr);
    align-items: start;
  }
}

.plan-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    box-shadow var(--motion) var(--ease),
    border-color var(--motion) var(--ease),
    transform var(--motion) var(--ease);
}

.plan:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.plan.is-selected {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.plan .price {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin: 0.65rem 0 0.4rem;
  letter-spacing: var(--track);
}

.plan .price small {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}

.plan .blurb {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.addon-panel {
  margin-top: 1rem;
}

.addon-panel > h3 {
  font-size: var(--fs-md);
  margin-bottom: 0.35rem;
}

.addon-panel > .hint {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.addon-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.addon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.addon.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.addon input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.addon strong {
  display: block;
  font-size: var(--fs-sm);
  margin-bottom: 0.15rem;
}

.addon .hint {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.addon .amt {
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

.seats {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.seats button {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--bg-mute);
  cursor: pointer;
  font-weight: 700;
}

.seats button:hover {
  box-shadow: var(--shadow);
}

/* Totals — sticky desktop / bottom sheet mobile */
.pricing-total {
  background: var(--tint-d);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.pricing-total .total-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  font-size: var(--fs-sm);
}

.pricing-total .total-line .was {
  text-decoration: line-through;
  color: var(--muted);
  margin-right: 0.4rem;
}

.pricing-total .total-sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.pricing-total .total-sum .was {
  text-decoration: line-through;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-right: 0.5rem;
}

.pricing-total .total-sum small {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}

.pricing-total .hint {
  margin-top: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.pricing-total .total-cta {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .pricing-total-desktop {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
  }

  .pricing-sheet,
  .sheet-trigger {
    display: none !important;
  }
}

/* Mobile bottom sheet */
@media (max-width: 1023px) {
  .pricing-total-desktop {
    display: none;
  }

  .sheet-trigger {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--on-dark);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 220ms var(--ease),
      visibility 220ms;
  }

  .sheet-trigger.is-inview {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sheet-trigger .tease-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
  }

  .sheet-trigger .was {
    text-decoration: line-through;
    opacity: 0.55;
    font-size: var(--fs-sm);
    font-weight: 500;
  }

  .pricing-sheet {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: flex;
    align-items: flex-end;
    visibility: hidden;
    pointer-events: none;
  }

  .pricing-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .pricing-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgb(17 17 17 / 0.4);
    cursor: pointer;
    opacity: 0;
    transition: opacity 220ms var(--ease);
  }

  .pricing-sheet.is-visible .pricing-sheet__backdrop {
    opacity: 1;
  }

  .pricing-sheet__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(85vh, 36rem);
    overflow: auto;
    background: var(--bg);
    border-radius: 1.1rem 1.1rem 0 0;
    padding: 0 1.1rem calc(1.25rem + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(2rem);
    transition:
      opacity 280ms cubic-bezier(0.4, 0, 0.2, 1),
      transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
  }

  .pricing-sheet.is-visible .pricing-sheet__panel {
    opacity: 1;
    transform: translateY(0);
  }

  .pricing-sheet__handle {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem 0.35rem;
    border: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
  }

  .pricing-sheet__handle:active {
    cursor: grabbing;
  }

  .pricing-sheet__handle:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: -2px;
  }

  .pricing-sheet__handle-bar {
    width: 2.5rem;
    height: 0.25rem;
    border-radius: var(--radius-pill);
    background: var(--line);
  }

  .pricing-sheet__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-top: 0.15rem;
  }

  .pricing-sheet__head button {
    border: 0;
    background: var(--bg-mute);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink);
  }

  @media (prefers-reduced-motion: reduce) {
    .sheet-trigger,
    .pricing-sheet__backdrop,
    .pricing-sheet__panel {
      transition: none;
    }
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

/* Templates reuse */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 1.5rem;
}

.pill {
  position: relative;
  isolation: isolate;
  padding: 0.4rem 0.9rem;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #00000020;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow var(--motion) var(--ease);
}

.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.dot-list a {
  color: inherit;
  font-weight: 600;
}

.pill:hover {
  box-shadow: var(--shadow);
}

.pill.is-active {
  color: var(--bg);
  border-color: var(--ink);
}

.pill.is-active::before {
  opacity: 1;
}

.group-nav {
  --group-nav-fade: 1.75rem;
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  isolation: isolate;
  padding: 0.65rem 0 var(--group-nav-fade);
  background: none;
}

.group-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - var(--group-nav-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - var(--group-nav-fade)),
    transparent 100%
  );
}

.group-nav .pill-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.group-nav .pill-row::-webkit-scrollbar {
  display: none;
}

html:has(.is-for-hub) {
  scroll-padding-top: calc(var(--nav-h) + 3.75rem);
}

.is-for-hub .card {
  border: 2px solid #dee8f5;
}

.template-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.template-card .icon-mark {
  margin: 0;
}

.features-label {
  margin: 1rem 0 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.features-label + .dot-list {
  margin-bottom: 1rem;
}

.dot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.dot-list li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.dot-list li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

/* /for/ landings — layout only; look stays on shared primitives */
.is-for main {
  padding-bottom: 2.5rem;
}

.hero.is-trade {
  padding-block: clamp(1.5rem, 5vw, 2.25rem);
}

.is-for .section {
  padding-block: 1rem;
}

.is-for .section-head {
  margin-bottom: 0.85rem;
}

.hero.is-trade .hero__actions {
  margin-top: 1.15rem;
}

.hero.is-trade .title {
  max-width: 28ch;
}

.hero.is-trade .lead {
  max-width: 46ch;
}

.card h2 + .badge,
.card h2 + p.badge {
  margin-top: 0.85rem;
}
