@view-transition {
  navigation: auto;
}

:root {
  color-scheme: dark;
  --bg: #050815;
  --surface: #0b142a;
  --text: #f3f7ff;
  --muted: #b6c6e1;
  --cyan: #a1efff;
  --gold: #ffd38c;
  --line: #7eafff3d;
  --radius: 22px;
  --gutter: clamp(14px, 4vw, 28px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --panel-shadow:
    inset 0 1px 0 #d2edff20,
    inset 0 -8px 18px #04081845,
    0 14px 32px #01040e70;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 83% 22%, #1a4cc468, transparent 43%),
    radial-gradient(ellipse at 20% 62%, #006ea449, transparent 42%),
    radial-gradient(ellipse at 70% 87%, #56307937, transparent 38%);
  animation: ambient-drift 18s ease-in-out infinite alternate;
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

header,
main {
  width: min(960px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  min-height: 66px;
}

header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -.055em;
}

header a::before {
  width: 11px;
  height: 11px;
  margin-inline: 4px 12px;
  border-radius: 3px;
  background: linear-gradient(140deg, #e5fbff, #49a9ff 74%);
  box-shadow: 0 0 14px #49a9ff80;
  transform: rotate(45deg);
  content: "";
}

header span,
h1 span,
.poster strong span {
  color: var(--cyan);
}

main {
  padding-block: 3px calc(110px + var(--safe-bottom));
  animation: enter 330ms ease-out both;
}

section {
  margin-block: 0 18px;
}

small {
  display: inline-block;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

h1 {
  margin: 7px 0 12px;
  font-size: clamp(2.25rem, 10vw, 4.65rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 4.5vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}

p {
  max-width: 58ch;
  margin: 0 0 16px;
  color: var(--muted);
}

.poster,
.poster + section,
article {
  border: 1px solid var(--line);
  box-shadow: var(--panel-shadow);
}

.poster {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(145deg, #080e21, #194da4 72%, #08739a);
}

.poster strong {
  font-size: clamp(2rem, 8vw, 5rem);
  letter-spacing: -.075em;
}

.poster img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #060b19;
}

.poster img[hidden] {
  display: none;
}

.poster + section {
  padding: clamp(18px, 5vw, 38px);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background:
    radial-gradient(ellipse at 100% 0, #2459a952, transparent 62%),
    linear-gradient(145deg, #112249, #0b142a 72%);
}

.poster + section h1 {
  text-wrap: balance;
}

.poster + section p {
  margin-block-end: 20px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

article {
  min-width: 0;
  padding: clamp(15px, 4vw, 24px);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #17294e, var(--surface) 74%);
}

.grid article {
  animation: enter 330ms ease-out backwards;
}

.grid article:nth-child(2) {
  animation-delay: 45ms;
}

.grid article:nth-child(3) {
  animation-delay: 90ms;
}

.grid article:nth-child(4) {
  animation-delay: 135ms;
}

article p {
  margin: 0 0 14px;
}

article p:last-child {
  margin-bottom: 0;
}

#plans {
  margin-block-start: 22px;
}

#plans article {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#plans article h2 {
  margin-block-start: 4px;
}

#plans .button {
  width: 100%;
  margin-block-start: auto;
  padding-inline: 8px;
  font-size: .83rem;
}

.price {
  color: var(--gold);
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.18;
  letter-spacing: -.045em;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid #fff0cd86;
  border-radius: 14px;
  color: #2a1507;
  background: linear-gradient(145deg, #ffe1a4, #ffad54);
  box-shadow: inset 0 1px 0 #fff8e0a6, 0 3px 0 #8a4b25;
  font: inherit;
  font-weight: 780;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.poster + section > .button,
#chat button {
  width: 100%;
}

.button:active,
button:not(:disabled):active {
  transform: translateY(2px) scale(.98);
  box-shadow: inset 0 1px 0 #fff8e0a6, 0 1px 0 #8a4b25;
}

button:disabled {
  border-color: var(--line);
  color: var(--muted);
  background: #162540;
  box-shadow: none;
  cursor: default;
}

nav {
  position: fixed;
  z-index: 3;
  bottom: calc(10px + var(--safe-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: min(460px, calc(100% - 20px));
  padding: 6px;
  border: 1px solid #81b8ff58;
  border-radius: 22px;
  background: #0b1530f5;
  box-shadow: var(--panel-shadow);
  transform: translateX(-50%);
}

@supports (backdrop-filter: blur(12px)) {
  nav {
    background: #0b1530dd;
    backdrop-filter: blur(12px);
  }
}

nav a {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 54px;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--muted);
  font-size: clamp(.65rem, 3vw, .8rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transition: transform 160ms ease, background-color 160ms ease;
}

nav img {
  display: block;
  width: 19px;
  height: 19px;
  filter: invert(1);
}

nav a:active {
  transform: scale(.94);
}

nav a[aria-current="page"] {
  border-color: #8edfff5c;
  color: var(--cyan);
  background: linear-gradient(150deg, #244e84, #14264b);
  box-shadow: inset 0 1px 0 #b7e8ff30;
}

nav a[aria-current="page"] img {
  animation: tab-in 280ms ease-out both;
}

label {
  display: block;
  margin-block: 14px;
  color: var(--cyan);
  font-size: .93rem;
  font-weight: 670;
}

input,
textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-block-start: 6px;
  padding: 10px 12px;
  border: 1px solid #6283b3;
  border-radius: 12px;
  color: var(--text);
  background: #080f23;
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

#feed {
  max-height: 34vh;
  overflow: auto;
  border-radius: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

#feed p {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 5px 14px 14px;
  background: #0b1730;
}

#feed b {
  color: var(--cyan);
}

#status {
  margin-block: 13px 0;
}

#status:empty {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (min-width: 360px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 680px) {
  header {
    min-height: 77px;
  }

  .poster + section > .button,
  #chat button {
    width: auto;
  }

  .grid {
    gap: 16px;
  }
}

@media (min-width: 880px) {
  #plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (hover: hover) {
  .button:hover,
  button:not(:disabled):hover {
    transform: translateY(-2px);
  }

  nav a:not([aria-current]):hover {
    background-color: #1a315b;
  }
}

@supports (view-transition-name: page-content) {
  main {
    view-transition-name: page-content;
  }

  :active-view-transition main {
    animation: none;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
}

::view-transition-old(page-content) {
  animation: leave 150ms ease-in both;
}

::view-transition-new(page-content) {
  animation: enter 300ms ease-out both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes leave {
  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}

@keyframes tab-in {
  from {
    transform: translateY(3px) scale(.84);
  }

  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes ambient-drift {
  from {
    transform: translate3d(-3%, -2%, 0);
  }

  to {
    transform: translate3d(4%, 3%, 0) scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
.store-hero,
.store-pricing-intro,
.store-section,
.store-offers {
  --store-border: #83baff42;
  --store-cyan: #a1efff;
  --store-gold: #ffd38c;
  --store-muted: #b6c6e1;
}

.poster + .store-hero {
  padding: clamp(20px, 5vw, 42px);
  background:
    radial-gradient(ellipse at top right, #244fa55c, transparent 65%),
    linear-gradient(145deg, #14254a, #0a1226 78%);
}

.store-hero h1,
.store-pricing-intro h1 {
  max-width: 17ch;
  margin-block: 0 14px;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: -.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.store-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--store-border);
}

.store-starting-price small {
  display: block;
  color: var(--store-muted);
  font-size: .78rem;
  letter-spacing: normal;
}

.store-starting-price strong {
  color: var(--store-gold);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.store-starting-price span {
  color: var(--store-muted);
  font-size: .85rem;
}

.store-hero-actions .button {
  gap: 10px;
  width: 100%;
}

.store-section,
.store-offers {
  margin-block: clamp(24px, 5vw, 42px);
}

.store-section h2,
.store-offers > h2 {
  margin-block: 0 12px;
}

.store-benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.store-card,
.store-panel,
.store-faq {
  border: 1px solid var(--store-border);
  border-radius: 20px;
  background: linear-gradient(140deg, #15284f, #0a1328 78%);
  box-shadow: inset 0 1px 0 #d1eaff1a, 0 10px 22px #02071470;
}

.store-card {
  padding: 16px 18px;
}

.store-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.store-card p,
.store-steps li > span,
.store-pricing-help dd,
.store-faq p {
  color: var(--store-muted);
  font-size: .92rem;
}

.store-steps {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding-inline-start: 25px;
}

.store-steps li {
  padding-inline-start: 4px;
}

.store-steps li::marker {
  color: var(--store-cyan);
  font-weight: 800;
}

.store-steps li > span {
  display: block;
  margin-block-start: 3px;
}

.store-pricing-intro {
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid var(--store-border);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top right, #245bb662, transparent 64%),
    #0e1a34;
}

.store-pricing-intro p {
  margin: 0;
}

.store-offers #plans {
  margin-block: 0;
}

.store-offers #plans article > small {
  display: none;
}

.store-offers #plans article h2 {
  margin-block: 0 6px;
}

.store-offers #plans .price {
  margin-block-end: 14px;
}

.store-pricing-help dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.store-pricing-help dl > div {
  padding-block-start: 10px;
  border-block-start: 1px solid var(--store-border);
}

.store-pricing-help dt {
  font-weight: 750;
}

.store-pricing-help dd {
  margin: 4px 0 0;
}

.store-faq details + details {
  border-block-start: 1px solid var(--store-border);
}

.store-faq summary {
  display: list-item;
  min-height: 48px;
  padding: 13px 16px;
  font-weight: 700;
  cursor: pointer;
}

.store-faq summary::marker {
  color: var(--store-cyan);
}

.store-faq details[open] summary {
  color: var(--store-cyan);
}

.store-faq p {
  margin: 0;
  padding: 0 16px 15px;
}

@media (min-width: 640px) {
  .store-hero-actions .button {
    width: auto;
  }

  .store-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-pricing-help dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}