/* The /sozdat-sayt and /sdelat-prezentaciyu landings: the /dead-tilda language (dead-tilda.css) plus the
   blocks they add — real work that scrolls or plays, the chat, the chart, the files, and the questions. */

/* The crossed-out words wrap as one piece, so the line through them never breaks across two lines. */
.dt-hero__title .dt-strike {
  display: inline-block;
}

.dt-space--decks .dt-space__card {
  aspect-ratio: 16 / 9;
  background-position: 50% 50% !important;
  background-size: cover;
}

/* Real work made on Vaibik, moving: a site plays a recorded scroll and a deck its slides and transitions.
   Every card opens the live work. */
.ai-works {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  padding: 0 var(--dt-gutter) clamp(120px, 18vh, 220px);
}

.ai-works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px);
}

.ai-works__grid--decks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-site,
.ai-deck {
  display: grid;
  gap: 16px;
  color: var(--dt-ink);
  text-decoration: none;
}

.ai-frame {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--dt-card);
  outline: 1px solid var(--dt-line);
  outline-offset: -1px;
  transition: transform 0.6s var(--dt-ease), outline-color 0.4s ease;
}

.ai-site:hover .ai-frame,
.ai-deck:hover .ai-deck__view {
  outline-color: rgba(212, 248, 90, 0.5);
  transform: translateY(-6px);
}

.ai-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
}

.ai-frame__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3b3f;
}

.ai-frame__bar span {
  flex: 1;
  margin-left: 8px;
  overflow: hidden;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--dt-muted);
  background: rgba(0, 0, 0, 0.32);
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-frame__view {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ai-frame__view video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-card__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.ai-card__name span {
  color: var(--dt-muted);
  font-size: 0.75em;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.ai-deck__view {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: var(--dt-card);
  outline: 1px solid var(--dt-line);
  outline-offset: -1px;
  transition: transform 0.6s var(--dt-ease), outline-color 0.4s ease;
}

.ai-deck__view video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A conversation with Vaibik: what the visitor writes on the right in lime, the answers on the left in
   glass, each message surfacing after the one before. */
.ai-chat {
  display: grid;
  width: min(480px, 100%);
  gap: 12px;
}

.ai-chat__me,
.ai-chat__them {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
  transition:
    opacity 0.9s var(--dt-ease),
    filter 0.9s var(--dt-ease),
    transform 0.9s var(--dt-ease);
  transition-delay: calc(0.2s + var(--d) * 0.9s);
}

.ai-chat.is-in .ai-chat__me,
.ai-chat.is-in .ai-chat__them {
  opacity: 1;
  filter: none;
  transform: none;
}

.ai-chat__me {
  justify-self: end;
  max-width: 86%;
  padding: 13px 18px;
  border-radius: 20px 20px 6px 20px;
  color: #0a0a0b;
  background: var(--dt-lime);
  font-size: 17px;
  line-height: 1.35;
}

.ai-chat__them {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 92%;
}

.ai-chat__them p {
  padding: 13px 18px;
  border-radius: 20px 20px 20px 6px;
  background: var(--dt-glass-item-hover);
  font-size: 17px;
  line-height: 1.35;
}

.ai-chat__who img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

/* The brief and what came of it: one line about a coffee shop, then its whole site, scrolling. */
.ai-brief {
  display: grid;
  width: min(600px, 100%);
  gap: 16px;
}

.ai-brief .ai-chat {
  justify-self: end;
}

.ai-browser {
  width: 100%;
}

.ai-browser__view {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ai-browser__view img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
  animation: ai-scroll 24s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate;
}

@keyframes ai-scroll {
  0%, 8% { transform: translate3d(0, 0, 0); }
  92%, 100% { transform: translate3d(0, -70%, 0); }
}

.ai-brief__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-brief__chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--dt-glass-item);
  font-size: 15px;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.8s var(--dt-ease), filter 0.8s var(--dt-ease);
  transition-delay: calc(var(--d) * 0.35s);
}

.is-in .ai-brief__chips span {
  opacity: 1;
  filter: none;
}

.ai-brief__chips svg,
.ai-domain svg {
  width: 16px;
  height: 16px;
  color: var(--dt-lime);
}

/* The site's own address, live, above the services it is wired to. */
.ai-domain {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: var(--dt-glass-item);
  font-size: 19px;
}

.ai-domain span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 248, 90, 0.14);
}

.ai-domain b {
  margin-left: auto;
  padding: 9px 16px;
  border-radius: 999px;
  color: #0a0a0b;
  background: var(--dt-lime);
  font-size: 15px;
  font-weight: 500;
}

/* A deck's story: six slides in order, lighting up one after another like someone flicking through. */
.ai-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, 100%);
  gap: 14px 12px;
  padding: 0;
  list-style: none;
}

.ai-story li {
  display: grid;
  gap: 8px;
  opacity: 0.35;
}

.ai-story img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.ai-story span {
  color: var(--dt-muted);
  font-size: 14px;
}

.ai-story.is-in li {
  animation: ai-story 7.2s ease infinite;
  animation-delay: calc(var(--d) * 1.2s);
}

.ai-story.is-in li img {
  animation: ai-story-ring 7.2s ease infinite;
  animation-delay: calc(var(--d) * 1.2s);
}

@keyframes ai-story {
  0%, 22% { opacity: 1; }
  34%, 100% { opacity: 0.35; }
}

@keyframes ai-story-ring {
  0%, 22% { outline-color: var(--dt-lime); }
  34%, 100% { outline-color: transparent; }
}

/* Numbers in, a chart out: the visitor's three rows become bars that grow in the deck's own style. */
.ai-chart {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  width: min(640px, 100%);
  gap: 18px;
}

.ai-chart__sheet {
  display: grid;
  overflow: hidden;
  border-radius: 14px;
  background: var(--dt-glass-item);
  font-size: 15px;
}

.ai-chart__sheet p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--dt-line);
}

.ai-chart__sheet p:first-child {
  border-top: 0;
  color: var(--dt-muted);
}

.ai-chart__sheet b {
  font-weight: 500;
}

.ai-chart__plot {
  display: grid;
  gap: 18px;
  padding: 22px 22px 18px;
  border-radius: 14px;
  color: #10261f;
  background: #e8f53a;
}

.ai-chart__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ai-chart__bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  height: 170px;
  gap: 12px;
  border-bottom: 1.5px solid rgba(16, 38, 31, 0.5);
}

.ai-chart__bars span {
  position: relative;
  height: calc(var(--v) * 100%);
  border-radius: 6px 6px 0 0;
  background: #10261f;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 1.2s var(--dt-ease);
  transition-delay: calc(0.4s + var(--d) * 0.2s);
}

.ai-chart__bars b {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.is-in .ai-chart__bars span {
  transform: none;
}

.ai-video {
  width: min(620px, 100%);
}

.ai-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* The company's look — colours and type — carried over a fan of slides in those colours. */
.ai-brand {
  display: grid;
  width: min(600px, 100%);
  justify-items: center;
  gap: 26px;
}

.ai-brand__kit {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px 12px 12px;
  border-radius: 999px;
  background: var(--dt-glass-item);
}

.ai-brand__swatches {
  display: flex;
}

.ai-brand__swatches i {
  width: 38px;
  height: 38px;
  margin-right: -8px;
  border: 2px solid #1d1d20;
  border-radius: 50%;
}

.ai-brand__font {
  margin-left: 8px;
  font-size: 30px;
  font-stretch: 78%;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ai-brand__slides {
  position: relative;
  width: 100%;
  height: clamp(170px, 18vw, 250px);
}

.ai-brand__slides img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 62%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: transform 1.1s var(--dt-ease), opacity 0.8s ease;
  transition-delay: calc(var(--d) * 0.15s);
}

.is-in .ai-brand__slides img {
  opacity: 1;
}

.is-in .ai-brand__slides img:nth-child(1) {
  transform: translateX(-92%) translateY(14px) rotate(-6deg);
}

.is-in .ai-brand__slides img:nth-child(2) {
  z-index: 1;
  transform: translateX(-50%);
}

.is-in .ai-brand__slides img:nth-child(3) {
  transform: translateX(-8%) translateY(14px) rotate(6deg);
}

/* A link to show the deck and the two files to send it as. */
.ai-share {
  display: grid;
  width: min(520px, 100%);
  gap: 14px;
}

.ai-share__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--dt-glass-item);
  font-size: 18px;
}

.ai-share__link b {
  margin-left: auto;
  padding: 10px 18px;
  border-radius: 999px;
  color: #0a0a0b;
  background: var(--dt-lime);
  font-size: 15px;
  font-weight: 500;
}

.ai-share__files {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.ai-share__files li {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--dt-glass-item);
  color: var(--dt-muted);
  font-size: 15px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--dt-ease), transform 0.9s var(--dt-ease);
  transition-delay: calc(0.2s + var(--d) * 0.12s);
}

.is-in .ai-share__files li {
  opacity: 1;
  transform: none;
}

.ai-share__files i {
  display: grid;
  width: 52px;
  height: 64px;
  place-items: end center;
  padding-bottom: 10px;
  border-radius: 6px 16px 6px 6px;
  color: #fff;
  background: #e5484d;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.ai-share__files .ai-share__pptx {
  background: #d24726;
}

.ai-share--step {
  width: min(86%, 420px);
}

.ai-share--step .ai-share__link b {
  transition: background 0.5s ease 1.2s;
}

/* Typed briefs in the steps: JavaScript types them, so the base line's CSS typing is off. */
.ai-typed {
  width: min(86%, 440px);
}

.ai-typed span {
  min-height: 1.2em;
  animation: none;
}

/* Step three: draft to live. */
.ai-switch span {
  position: relative;
  z-index: 1;
  justify-self: center;
  font-size: 18px;
  transition: color 0.6s ease 1s, opacity 0.6s ease 1s;
}

.ai-switch.is-in .ai-switch__from {
  opacity: 0.35;
}

.ai-switch.is-in .ai-switch__to {
  color: #0a0a0b;
  font-weight: 500;
}

.ai-step-deck {
  width: 100%;
  border-radius: 14px;
}

.ai-price__deck {
  aspect-ratio: 16 / 9;
  background-position: 50% 50% !important;
  background-size: cover !important;
}

/* The questions people ask before they start, answered plainly; the first one is open. */
.ai-faq {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(80px, 12vh, 160px) var(--dt-gutter) 0;
}

.ai-faq__list {
  max-width: 1040px;
  border-bottom: 1px solid var(--dt-line);
}

.ai-faq__item {
  border-top: 1px solid var(--dt-line);
}

.ai-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.4vw, 32px) 0;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
  list-style: none;
  cursor: pointer;
}

.ai-faq__item summary::-webkit-details-marker {
  display: none;
}

.ai-faq__item summary i {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dt-glass-item);
  transition: background 0.3s ease, transform 0.5s var(--dt-ease);
}

.ai-faq__item summary i::before,
.ai-faq__item summary i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: var(--dt-ink);
  content: "";
}

.ai-faq__item summary i::after {
  transform: rotate(90deg);
}

.ai-faq__item summary:hover i {
  background: var(--dt-glass-item-hover);
}

.ai-faq__item[open] summary i {
  background: var(--dt-lime);
  transform: rotate(45deg);
}

.ai-faq__item[open] summary i::before,
.ai-faq__item[open] summary i::after {
  background: #0a0a0b;
}

.ai-faq__item p {
  max-width: 780px;
  padding: 0 64px clamp(26px, 2.6vw, 36px) 0;
  color: var(--dt-muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
}

.ai-faq__item a {
  color: var(--dt-lime);
}

.ai-foot-nav {
  flex-basis: 100%;
}

.ai-foot-nav a {
  color: var(--dt-muted);
  font-size: 15px;
}

.ai-foot-nav a[aria-current="page"] {
  color: var(--dt-ink);
}

@media (max-width: 1100px) {
  .ai-works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ai-works__grid,
  .ai-works__grid--decks {
    grid-template-columns: 1fr;
  }

  .ai-chart {
    grid-template-columns: 1fr;
  }

  .ai-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-faq__item p {
    padding-right: 0;
  }

  .ai-chat__me,
  .ai-chat__them p {
    font-size: 16px;
  }

  .ai-share__files {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-browser__view img {
    animation: none;
    transition: none;
  }

  .ai-chat__me,
  .ai-chat__them,
  .ai-brief__chips span,
  .ai-chart__bars span,
  .ai-brand__slides img,
  .ai-share__files li {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .ai-story li,
  .ai-story img {
    opacity: 1;
    animation: none;
  }
}
