/* Features (/features): the page's own layout, from docs/design/website/export/round3/features.html. */
/* hero */
.hero {
  position: relative;
  padding: 28px 0 14px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 590px) minmax(0, 1fr);
  gap: 0;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.hero-art {
  position: relative;
  margin: -20px -120px -10px -220px;
}
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* compact feature index */
.ix-sec {
  padding: 8px 0 28px;
}
.index {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-radius: 22px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ix {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px 8px;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.ix:hover {
  background: var(--card);
}
.ix img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* private mode sticky scroll story */
.story-sec {
  padding: 52px 0 48px;
}
.story-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 24px;
}
.story {
  position: relative;
  height: auto;
}
.st-stage {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.st-caps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.st-caps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.st-caps .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #1d1a17;
  background: var(--dot);
}
.st-caps b {
  display: block;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.st-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.call {
  position: relative;
  width: 100%;
  border-radius: 24px;
  background: #1a1816;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  padding: 12px 16px 16px;
  box-sizing: border-box;
}
.call-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  font-size: 12px;
  color: #a8a29a;
}
.call-dots {
  display: flex;
  gap: 6px;
}
.call-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3734;
  display: block;
}
.call-cam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #d6d1c9;
}
.call-cam i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9df27d;
  display: block;
}
.call-canvas {
  position: relative;
  border-radius: 16px;
  background: #2a2724;
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 372px;
  box-sizing: border-box;
}
.call-assist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 3;
}
.call-assist > div {
  zoom: 0.96;
}
.call-assist .st-card > div {
  background: #ffffff !important;
}
.call-bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}
.call-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.call-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffba4d;
  color: #1d1a17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex: none;
}
.call-who {
  font-size: 12px;
  color: #a8a29a;
  line-height: 1.3;
}
.call-who b {
  display: block;
  color: #f4f2ee;
  font-size: 13px;
}
.call-cap {
  background: rgba(18, 17, 16, 0.84);
  color: #f4f2ee;
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.call-me {
  width: 88px;
  height: 54px;
  border-radius: 10px;
  background: #121110;
  box-shadow: 0 0 0 1px #3d3935;
  font-size: 11px;
  color: #a8a29a;
  padding: 6px 8px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  flex: none;
}

/* clean, uncrowded shared-screen comparison row */
.share-row {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 20px;
  align-items: center;
}
.share-note {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 52px;
  text-align: right;
}
.share-win {
  border-radius: 18px;
  background: #1a1816;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 10px 12px 12px;
  box-sizing: border-box;
}
.share-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #a8a29a;
  padding: 0 2px 8px;
}
.share-pill {
  background: #94dbff;
  color: #1d1a17;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.share-tile {
  border-radius: 12px;
  background: #2a2724;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}
.share-tile .call-av {
  width: 46px;
  height: 46px;
  font-size: 16px;
}
.share-tile .who {
  font-size: 12px;
  color: #d6d1c9;
}
.share-tile .clean {
  font-size: 11px;
  color: #9df27d;
  font-weight: 600;
}

/* sessions editorial bento */
.sec-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}
.bento-sess {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.sess-art {
  border-radius: 26px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 26px 24px 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: clip; /* not hidden: a scroll container would freeze the scroll-driven effects inside it */
}
.sess-art img {
  width: 104%;
  max-width: none;
  margin: 0 -2%;
  display: block;
}
.ctx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ctx-card {
  border-radius: 22px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ctx-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 2px;
}
.ctx-card b {
  font-size: 17px;
  color: var(--ink);
}

/* goals wide showcase */
.goals-head {
  margin-bottom: 48px;
}
.goals-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: stretch;
}
.goals {
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  justify-content: center;
}
.goal {
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 16px;
  align-items: center;
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.goal:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.bar2 {
  display: flex;
  gap: 5px;
}
.bar2 i {
  flex: 1;
  height: 10px;
  border-radius: 6px;
  background: var(--line);
}
.bar2 i.on {
  background: #9df27d;
}
.goal.done .t::after {
  content: " ✓";
  font-weight: 700;
}
.states-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}
.state-card {
  border-radius: 20px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
.state-card .bar2 {
  max-width: 112px;
}
.state-card b {
  color: var(--ink);
  font-size: 16px;
}

/* actions 2-col directory */
.acts-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}
.acts-key {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 6px;
}
.acts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 24px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  overflow: hidden;
  background: var(--card);
}
.act {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.act:nth-child(2n) {
  border-right: 0;
}
.act:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.act-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.act b {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.act .d {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
}

/* coding & system design panels */
.panels-sec {
  padding: 16px 0 60px;
}
.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.panel {
  border-radius: 26px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.panel img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: none;
}

/* dark signature band */
.incog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}
.signals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.sig {
  border-radius: 18px;
  background: var(--stage-surface);
  box-shadow: inset 0 0 0 1px var(--stage-line);
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  font-size: 15px;
  line-height: 1.4;
  color: var(--stage-muted);
}
.sig img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.sig b {
  display: block;
  color: var(--stage-ink);
  font-size: 16px;
  margin-bottom: 2px;
}
.incog-art {
  position: relative;
  padding-top: 46px;
}
.incog-art img {
  width: 100%;
  height: auto;
  display: block;
}

/* summary */
.sum-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 410px);
  gap: 52px;
  align-items: center;
}
.sum-art {
  position: relative;
  padding-top: 42px;
}
.sum-art img {
  width: 100%;
  height: auto;
  display: block;
}
.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
}
.privacy-pill img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* plans */
.plans-wrap {
  margin-top: 42px;
}
.story-head .lede {
  max-width: 440px;
}

/* How far each story step is in view, 0 to 1 (the st-cap animations below) */
@property --cap {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

/* Scroll-driven sticky story only when motion is allowed AND scroll timelines are supported */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .story {
      height: 2050px;
      view-timeline-name: --st;
      view-timeline-axis: block;
    }
    .st-stage {
      position: sticky;
      top: 32px;
      min-height: 740px;
    }
    /* The step in view is ink with its number on the highlighter; the others stay readable
       (graphite, an outlined number), since fading them with opacity fails contrast. */
    .st-caps li {
      color: color-mix(in srgb, #1d1a17 calc(var(--cap) * 100%), #5e5852);
    }
    .st-caps .dot {
      background: color-mix(in srgb, var(--dot) calc(var(--cap) * 100%), transparent);
      box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--line-strong) calc(100% - var(--cap) * 100%), transparent);
    }
    @keyframes st-cap {
      0% {
        --cap: 0;
      }
      12%,
      88% {
        --cap: 1;
      }
      100% {
        --cap: 0;
      }
    }
    @keyframes st-cap-last {
      0% {
        --cap: 0;
      }
      20%,
      100% {
        --cap: 1;
      }
    }
    @keyframes st-drop {
      from {
        opacity: 0;
        transform: translateY(-24px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes st-unfold {
      from {
        opacity: 0;
        clip-path: inset(0 0 100% 0 round 20px);
      }
      to {
        opacity: 1;
        clip-path: inset(0 0 0 0 round 20px);
      }
    }
    @keyframes st-type {
      from {
        max-width: 0;
      }
      to {
        max-width: 40em;
      }
    }
    @keyframes st-share {
      from {
        opacity: 0;
        transform: translateY(36px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    .st-c1 {
      animation: st-cap linear both;
      animation-timeline: --st;
      animation-range: contain 0% contain 25%;
    }
    .st-c2 {
      animation: st-cap linear both;
      animation-timeline: --st;
      animation-range: contain 22% contain 48%;
    }
    .st-c3 {
      animation: st-cap linear both;
      animation-timeline: --st;
      animation-range: contain 45% contain 72%;
    }
    .st-c4 {
      animation: st-cap-last linear both;
      animation-timeline: --st;
      animation-range: contain 70% contain 92%;
    }
    .st-type {
      display: inline-block;
      overflow: hidden;
      vertical-align: bottom;
      white-space: nowrap;
      animation: st-type linear both;
      animation-timeline: --st;
      animation-range: contain 2% contain 18%;
    }
    .st-bar {
      animation: st-drop linear both;
      animation-timeline: --st;
      animation-range: contain 22% contain 32%;
    }
    .st-card {
      animation: st-unfold linear both;
      animation-timeline: --st;
      animation-range: contain 46% contain 58%;
    }
    .st-share {
      animation: st-share linear both;
      animation-timeline: --st;
      animation-range: contain 68% contain 84%;
    }
  }
}

@container sw (max-width: 900px) {
  .hero {
    padding: 16px 0 8px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-copy {
    gap: 14px;
  }
  .hero-art {
    margin: 10px -18px 0;
    overflow: hidden;
    height: auto;
  }
  .hero-art img {
    width: 170%;
    max-width: none;
    margin-left: -70%;
    margin-top: 0;
  }
  .hero-art .note {
    display: none;
  }
  .hero-art .pen {
    display: none;
  }

  .ix-sec {
    padding: 4px 0 22px;
  }
  .index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
    border-radius: 18px;
  }
  .ix {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 6px 7px;
    gap: 6px;
    font-size: 12px;
    border-radius: 11px;
  }
  .ix img {
    width: 24px;
    height: 24px;
    flex: none;
  }

  .story-sec {
    padding: 36px 0 34px;
  }
  .story-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }
  .story {
    height: auto !important;
  }
  .st-stage {
    position: static !important;
    min-height: 0 !important;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .st-caps {
    gap: 10px;
  }
  .st-caps li {
    grid-template-columns: 28px 1fr;
    gap: 10px;
  }
  .st-caps .dot {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .st-caps b {
    font-size: 16px;
    margin-bottom: 1px;
  }
  .st-caps .body {
    font-size: 14px;
  }
  .st-caps li,
  .st-bar,
  .st-card,
  .st-share,
  .st-type {
    animation: none !important;
    opacity: 1 !important;
    max-width: none !important;
    white-space: normal !important;
  }

  .st-view {
    margin: 0 -10px;
    gap: 12px;
  }
  .call {
    border-radius: 20px;
    padding: 10px 8px 12px;
  }
  .call-bar {
    padding: 0 6px 8px;
    font-size: 11px;
  }
  .call-canvas {
    padding: 10px 6px 12px;
    min-height: 0;
    gap: 10px;
  }
  .call-assist > div {
    zoom: 0.565;
  }
  .call-bottom {
    flex-wrap: wrap;
    padding: 4px 4px 0;
    gap: 8px;
  }
  .call-me {
    display: none;
  }
  .call-cap {
    font-size: 13px;
    padding: 6px 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .share-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0 10px;
  }
  .share-note {
    align-items: flex-start;
    text-align: left;
    padding: 0 2px;
  }
  .share-note .pen {
    display: none;
  }
  .share-note .note {
    position: static;
    font-size: 21px;
  }
  .share-tile {
    height: 98px;
  }

  .sec-head-row,
  .bento-sess,
  .goals-stage,
  .acts-head,
  .panels,
  .incog-grid,
  .sum-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sec-head-row,
  .goals-head {
    margin-bottom: 16px;
  }
  .bento-sess .sess-art {
    order: 2;
    padding: 18px 14px 0;
  }
  .sess-art .note {
    left: auto !important;
    right: 12px !important;
    top: 8px !important;
    font-size: 21px;
  }
  .sess-art .pen {
    display: none;
  }
  .ctx-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ctx-card {
    padding: 12px;
    border-radius: 16px;
    gap: 4px;
  }
  .ctx-card img {
    width: 34px;
    height: 34px;
  }
  .ctx-card b {
    font-size: 14px;
  }
  .ctx-card .body {
    font-size: 13px;
  }

  .goals {
    padding: 18px;
    gap: 10px;
  }
  .goals .note {
    position: static !important;
    transform: none !important;
    font-size: 22px;
    margin-bottom: -2px;
  }
  .goals .pen {
    display: none;
  }
  .goal {
    grid-template-columns: 1fr 82px;
    font-size: 14px;
    gap: 10px;
    padding-bottom: 10px;
  }
  .states-col {
    gap: 8px;
  }
  .state-card {
    padding: 12px 14px;
    font-size: 14px;
    gap: 4px;
  }

  .acts-head {
    margin-bottom: 14px;
    gap: 10px;
  }
  .acts-key {
    display: none;
  }
  .acts-grid {
    grid-template-columns: 1fr;
  }
  .act {
    border-right: 0;
    padding: 12px 14px;
    gap: 3px;
  }
  .act:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .act:last-child {
    border-bottom: 0;
  }
  .act .d {
    font-size: 14px;
  }

  .panels-sec {
    padding: 10px 0 38px;
  }
  .panel {
    padding: 18px;
    border-radius: 20px;
  }
  .panel img {
    width: 50px;
    height: 50px;
  }

  .incog-art {
    padding-top: 30px;
  }
  .incog-art .note {
    left: 6px !important;
    top: 0 !important;
    font-size: 21px;
  }
  .incog-art .pen {
    left: 220px !important;
    top: 16px !important;
    width: 50px !important;
    height: 32px !important;
  }
  .sig {
    padding: 10px 12px;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    font-size: 14px;
  }
  .sig img {
    width: 34px;
    height: 34px;
  }

  .sum-art {
    width: min(100%, 260px);
    max-width: 260px;
    margin: 0 auto;
    padding-top: 26px;
  }
  .sum-art .note {
    left: 0 !important;
    top: 0 !important;
    font-size: 21px;
  }
  .sum-art .pen {
    display: none;
  }

  .plans-wrap {
    margin-top: 24px;
  }
  .plan-note-d {
    display: none;
  }
}

/* Between the phone layout and about 1180 px (where the call demo stops fitting beside the steps) the story stacks: the steps above, the call
   below, without the scroll runway; and the Actions key note is left out, as on phones. */
@container sw (max-width: 1180px) {
  .story {
    height: auto !important;
  }
  .st-stage {
    position: static !important;
    min-height: 0 !important;
  }
  .st-caps li,
  .st-bar,
  .st-card,
  .st-share,
  .st-type {
    animation: none !important;
    opacity: 1 !important;
    max-width: none !important;
  }
  .acts-key {
    display: none;
  }
}
@container sw (min-width: 901px) and (max-width: 1180px) {
  .st-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .st-caps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
  }
  .acts-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* tablet: the phone layout with room to spare */
@container sw (min-width: 721px) and (max-width: 900px) {
  .hero-art {
    margin: 10px auto 0;
    max-width: 560px;
  }
  .call-assist > div {
    zoom: 0.95;
  }
}
