/* The story sections: app showcase, roadmap strip, privacy flow diagram and FAQ. */

[data-icon] { display: inline-grid; place-items: center; flex-shrink: 0; }
[data-icon] > svg, .tool-card__icon > svg, .filter-chip__icon > svg { display: block; width: 100%; height: 100%; }
.tool-card__icon > svg { width: 16px; height: 16px; }
.button [data-icon] { width: 18px; height: 18px; }

.section__header--center { margin-inline: auto; text-align: center; }

/* ---------- App showcase ---------- */

/* The hero already fades into white, so the next section starts close instead of adding a second gap. */
.showcase { padding-top: 40px; padding-bottom: 96px; }

.window {
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 2px 4px rgba(9, 9, 11, 0.04), 0 32px 64px -24px rgba(0, 90, 224, 0.28);
}

.window__bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--surface-tint);
}

.window__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window__shot { display: block; width: 100%; height: auto; }

/* ---------- Roadmap strip ---------- */

.roadmap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--paper);
}

.roadmap__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.roadmap__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.roadmap__item {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-tint);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.roadmap__note { flex: 1; min-width: 200px; margin: 0; font-size: 13px; color: var(--ink-muted); }

/* ---------- Privacy flow ---------- */

.flows { display: grid; gap: 12px; margin-bottom: 48px; }

.flow {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-hairline);
}

.flow__label { margin: 0; font-size: 14px; font-weight: 600; }
.flow__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }

.flow__steps li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.flow__steps li [data-icon] { width: 16px; height: 16px; }
.flow__steps li + li::before { content: "→"; position: absolute; left: -20px; color: var(--ink-muted); }

/* The long detour is deliberately grey and dashed; the local path is short and lit. */
.flow--cloud { background: var(--surface-tint); }
.flow--cloud .flow__label { color: var(--ink-muted); }
.flow--cloud li { border: 1px dashed var(--border-strong); color: var(--ink-muted); }
.flow--local { background: var(--brand-tint); border-color: rgba(0, 90, 224, 0.2); }
.flow--local .flow__label { color: var(--brand-blue); }
.flow--local li { background: var(--paper); color: var(--ink-dark); box-shadow: 0 1px 2px rgba(9, 9, 11, 0.06); }
.flow--local li:last-child { background: var(--brand-blue); color: var(--ink-light); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li { display: flex; gap: 14px; }
.principles__icon { width: 20px; height: 20px; margin-top: 2px; color: var(--brand-blue); }
.principles h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.principles p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq .section__title { margin-bottom: 32px; }
.faq__list { border-top: 1px solid var(--border-strong); }
.faq__item { border-bottom: 1px solid var(--border-strong); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-muted); transition: transform var(--duration-fast) var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 20px; max-width: 640px; font-size: 15px; color: var(--ink-muted); }

/* ---------- Footer links + spam trap ---------- */

.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__links a { color: var(--ink-muted); font-weight: 500; }
.footer__links a:hover { color: var(--ink-dark); filter: none; }

.footer__button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font: 500 13px/1.2 var(--font-brand);
  cursor: pointer;
}

.footer__button:hover { color: var(--ink-dark); }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Bots fill every field; people never see this one, so a filled value means spam. */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .flow { grid-template-columns: 1fr; gap: 12px; }
}

/* On phones the steps stack vertically, so the arrows point down instead of dangling at line starts. */
@media (max-width: 640px) {
  .flow { text-align: center; }
  .flow__steps { flex-direction: column; align-items: center; gap: 22px; }
  .flow__steps li + li::before { content: "↓"; left: 50%; top: -21px; transform: translateX(-50%); }
}
