/* A tour page: a short hero, every feature laid out up front on one sheet,
   then a closer look where one click shows any feature's screen. Nothing is
   driven by scrolling. */

.tour-hero { background: #F5F2EC; border-bottom: 1px solid var(--line); padding: 56px 0 52px; }
.tour-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.tour-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.12; font-weight: 600; color: var(--green-dark); }
.tour-hero .sub { margin-top: 16px; font-size: 1.1rem; color: var(--ink-soft); max-width: 34em; }
.tour-hero .cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.tour-hero .hero-pic { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 48px rgba(31, 74, 55, 0.2); aspect-ratio: 4 / 3;
  background-size: cover; background-position: center; }
.tour-crumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.tour-crumb a { color: var(--ink-soft); }

/* The sheet: every feature, one line each, all visible at once. */
.sheet { background: #fff; border-bottom: 1px solid var(--line); padding: 56px 0 60px; }
.sheet .lede { margin-top: 10px; color: var(--ink-soft); max-width: 40em; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 28px; margin-top: 30px; }
.feat { display: block; color: var(--ink); border-top: 2px solid #CFE2D6; padding-top: 14px; transition: border-color .15s ease; }
.feat:hover { border-top-color: var(--green); }
.feat b { display: block; font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 1.08rem; color: var(--green-dark); line-height: 1.3; }
.feat span { display: block; margin-top: 6px; font-size: 0.92rem; color: var(--ink-soft); }
.feat i { display: block; margin-top: 10px; font-style: normal; font-size: 0.82rem; font-weight: 600; color: var(--green); }

/* The closer look: the feature list on the left, the screen on the right. */
.look { padding: 64px 0 72px; }
.look .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.look-head { grid-column: 1 / -1; }
.look-head .lede { margin-top: 10px; color: var(--ink-soft); max-width: 40em; }
.look-list { border-top: 1px solid var(--line); }
.item { border-bottom: 1px solid var(--line); padding: 16px 0 16px 18px; cursor: pointer; position: relative; outline: none; }
.item::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: transparent; transition: background .2s; }
.item.on::before { background: var(--green); }
.item .t { display: block; font-family: 'Lora', Georgia, serif; font-size: 1.12rem; font-weight: 600; color: var(--ink-soft); transition: color .2s; }
.item:hover .t, .item:focus-visible .t, .item.on .t { color: var(--green-dark); }
.item .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.item.on .more { grid-template-rows: 1fr; }
.item .more > div { overflow: hidden; }
.item p { margin-top: 10px; color: var(--ink-soft); font-size: 0.98rem; }
.item ul { list-style: none; margin-top: 10px; display: grid; gap: 6px; }
.item li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 0.93rem; }
.item li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.item li strong { color: var(--ink); }
.item .step-vis { display: none; }

.look-stage { position: sticky; top: 88px; }
.stage-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.stage-frame .vis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.stage-frame .vis.on { opacity: 1; transform: none; pointer-events: auto; }
.stage-frame .vis > * { max-width: 100%; }
.stage-frame .browser, .step-vis .browser { width: 100%; }
.stage-frame .phone { height: 100%; max-height: 560px; width: auto; }
.stage-caption { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; min-height: 1.4em; }

/* Pictures a feature can show */
.panel { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: 0 18px 44px rgba(31, 74, 55, 0.12); }
.panel h4 { font-family: 'Lora', Georgia, serif; font-size: 1.05rem; color: var(--green-dark); margin-bottom: 12px; }
.photo { width: 100%; height: 100%; border-radius: 18px; background-size: cover; background-position: center;
  box-shadow: 0 18px 44px rgba(31, 74, 55, 0.18); }
.duo { display: flex; gap: 22px; align-items: center; width: 100%; height: 100%; }
.duo .panel, .duo .browser { flex: 1; min-width: 0; }
.duo .phone { height: 78%; flex: none; }
.duo .photo { flex: 1; height: 78%; }
.vis video { width: 100%; border-radius: 16px; box-shadow: 0 18px 44px rgba(31, 74, 55, 0.18); display: block; }

.kv { display: grid; gap: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.kv em { font-style: normal; color: var(--ink-soft); }
.kv b { font-weight: 600; }
.bar { display: inline-block; width: 56px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #DDE6DF, #EEF3EF); vertical-align: middle; }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.86rem; }
.flow span { background: #F5F2EC; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.flow span.on { background: var(--green); border-color: var(--green); color: #fff; }
.flow i { color: var(--ink-soft); font-style: normal; }

.tour-end { background: #fff; border-top: 1px solid var(--line); padding: 64px 0; text-align: center; }
.tour-end h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tour-end p { margin: 12px auto 0; max-width: 36em; color: var(--ink-soft); }
.tour-end .cta { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.other-tours { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.other-tours a { border: 1px solid var(--line); background: #FBFAF7; border-radius: 12px; padding: 12px 18px; font-weight: 600; color: var(--green-dark); }

@media (max-width: 900px) {
  .tour-hero .wrap, .look .wrap { grid-template-columns: 1fr; gap: 28px; }
  .tour-hero .hero-pic { aspect-ratio: 16 / 9; }
  .look-stage, .stage-caption { display: none; }
  /* Each feature carries its own picture when there's no stage beside it. */
  .item.on .step-vis { display: flex; justify-content: center; margin: 18px 0 6px; }
  .item .step-vis .phone { height: 420px; width: auto; }
  .item .step-vis .duo { flex-direction: column; }
  .item .step-vis .duo .phone { height: 380px; }
  .item .step-vis .photo { aspect-ratio: 4 / 3; height: auto; }
}

  /* The chain: one plant through every module */
  .chain { background: #fff; padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
  .chain-row { list-style: none; counter-reset: node; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 36px; position: relative; }
  .chain-row::before { content: ''; position: absolute; left: 8%; right: 8%; top: 17px; height: 2px; background: #CFE2D6; }
  .chain-row li { position: relative; padding: 0 14px; text-align: center; }
  .chain-row li::before { counter-increment: node; content: counter(node); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
    width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font: 700 0.85rem/1 'Inter Variable', system-ui, sans-serif; position: relative; z-index: 1;
    box-shadow: 0 0 0 6px #fff; }
  .cid { display: inline-block; font: 700 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1F5B3F; background: #E3F1E7; border-radius: 999px; padding: 6px 10px; }
  .chain-row b { display: block; margin-top: 10px; font-size: 1rem; color: var(--green-dark); }
  .chain-row li > span:last-child { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--ink-soft); }
  .chain-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .chain-side div { background: #FBFAF7; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 12px; padding: 14px 16px; }
  .chain-side b { display: block; color: var(--green-dark); font-size: 0.98rem; }
  .chain-side span { display: block; margin-top: 4px; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .chain-row { grid-template-columns: 1fr; gap: 26px; }
  .chain-row::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .chain-side { grid-template-columns: 1fr; }
}

