/* Sample, FAQ and Privacy pages (Figma "Website / Tools & guides": 2184:668, 2196:1035, 2190:2609).
   Shared parts (top bar, page header, "Try one client file", footer) live in styles.css. */

.page-head h1 {
  max-width: none;
}

/* Sample · Inside the sample (2388:1167): the contents on the left, the picked page on a stage on
   the right, one download. Phones (2388:1268): the sections become chips that scroll sideways,
   then the stage, its label and a full-width download. */
.viewer-wrap {
  padding-bottom: 48px;
}
.viewer {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "kicker right" "list right" "dl right";
  gap: 16px 48px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.viewer-kicker {
  grid-area: kicker;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 1px;
}
.viewer-list {
  grid-area: list;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.viewer-group {
  padding: 10px 0 4px 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.8px;
}
.viewer-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.viewer-list button span:first-child {
  flex: 1 1 0;
  min-width: 0;
}
.viewer-no {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.viewer-list button:disabled {
  cursor: default;
}
.viewer-list button:not(:disabled):hover {
  background: var(--subtle);
}
.viewer-list [aria-pressed="true"] {
  /* The picked row: a 3 px navy bar on the left (Figma's border-left), text kept in place. */
  padding-left: 9px;
  border-left: 3px solid var(--brand);
  background: #f3f5f8;
  color: var(--text);
  font-weight: 600;
}
.viewer-list [aria-pressed="true"]:not(:disabled):hover {
  background: #f3f5f8;
}
.viewer-list [aria-pressed="true"] .viewer-no {
  font-weight: 400;
}
.viewer-dl {
  grid-area: dl;
  justify-self: start;
}
.btn-md {
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
}
.viewer-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.viewer-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 560px;
  padding: 16px 16px 35px;
  border-radius: 12px;
  background: #f3f5f8;
  overflow: hidden;
}
/* The paper keeps its bounds while pages swap; one pale sheet sits 10 px behind it. */
.viewer-paper {
  position: relative;
  width: min(360px, 100% - 10px);
  aspect-ratio: 720 / 1018;
}
.viewer-sheet,
.viewer-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
}
.viewer-sheet {
  transform: translate(10px, 10px);
  opacity: 0.7;
}
.viewer-page {
  box-shadow: 0 6px 18px rgba(15, 28, 46, 0.1);
}
.viewer-page.is-new {
  animation: viewer-in 380ms var(--ease-out);
}
@keyframes viewer-in {
  from {
    opacity: 0;
    transform: translateY(calc(14px * var(--move))) scale(calc(1 - 0.02 * var(--move)));
  }
}
@keyframes viewer-sheet {
  50% {
    transform: translate(calc(10px + 8px * var(--move)), calc(10px + 8px * var(--move)));
  }
}
.viewer-paper.is-new .viewer-sheet {
  animation: viewer-sheet 420ms var(--ease-out);
}
.viewer-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.viewer-error[hidden] {
  display: none;
}
.viewer-error b {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}
.viewer-error span {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
.viewer-stage.is-failed .viewer-paper {
  visibility: hidden;
}
.viewer-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

/* Sample · What's in the pack (2184:827) */
.pack-parts {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
}
.pack-title {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.pack-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.pack-card h3 {
  color: var(--brand);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.5px;
}
.pack-card ul {
  padding-left: 22.5px;
  color: var(--text-2);
  font-size: 15px;
  line-height: normal;
  list-style: disc;
}

/* FAQ · "Website / FAQ" (2206:3476): one question per row, answers in the HTML */
.faq-page {
  padding-bottom: 40px;
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 150ms ease;
}
.faq-list details:not([open]):hover {
  border-color: var(--border-strong);
}
.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.075px;
  list-style: none;
  cursor: pointer;
  border-radius: 11px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  flex: none;
  margin-top: -3px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.5px;
  content: "+";
}
.faq-list details[open] summary {
  padding-bottom: 0;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details p {
  padding: 16px 24px 24px;
  color: var(--text-2);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.25px;
}
/* FAQ · motion guide 2348:1167: the open answer gets a navy margin marker; the answer opens
   first, then its example fades in. Direct links (/faq#prepare) open their question. */
.faq-list details {
  position: relative;
  scroll-margin-top: 104px;
}
.faq-list details[open]::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: -1px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--brand);
  animation: faq-mark 320ms var(--ease-out);
}
.faq-list details[open] > p {
  animation: faq-in 320ms var(--ease-out);
}
@keyframes faq-mark {
  from {
    transform: scaleY(calc(1 - var(--move)));
  }
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(calc(-6px * var(--move)));
  }
}
@keyframes faq-fade {
  from {
    opacity: 0;
  }
}
/* A tiny column example under the file question (from the sample's trial balance). */
.faq-cols {
  margin: -8px 24px 24px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 16px;
  animation: faq-fade 320ms var(--ease-out) 180ms both;
}
.faq-cols caption {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.faq-cols th,
.faq-cols td {
  padding: 6px 10px;
  border: 1px solid var(--border);
  text-align: left;
}
.faq-cols th {
  background: var(--subtle);
  color: var(--text);
  font-weight: 500;
}
.faq-cols td {
  color: var(--text-2);
}
.faq-cols :is(th, td):nth-child(n + 3) {
  text-align: right;
}

/* Privacy · topic links (motion guide 2348:1167) and a short navy margin mark on the section you
   land on. */
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 32px;
}
.topics a {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
  transition: border-color 150ms ease, color 150ms ease;
}
.topics a:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.notice section {
  position: relative;
  scroll-margin-top: 112px;
}
.notice section:target::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: -14px;
  width: 3px;
  border-radius: 2px;
  background: var(--brand);
  animation: faq-fade 300ms ease-out;
}
/* Privacy · a short fold under a section ("More detail +", Figma 2190:2636), closed at first. */
.more summary {
  display: inline-flex;
  gap: 8px;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  list-style: none;
  cursor: pointer;
}
.more summary::-webkit-details-marker {
  display: none;
}
.more summary::after {
  content: "+";
  color: var(--muted);
}
.more[open] summary::after {
  content: "−";
}
.more summary:hover {
  color: var(--text);
}
.more p {
  margin-top: 8px;
  opacity: 0.75;
}
.faq-list a,
.notice a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Privacy · Notice (2190:2623) */
.page-head .updated {
  color: var(--muted);
  font-size: 13px;
  line-height: normal;
  letter-spacing: 0;
}
.notice {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 96px;
}
.notice section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
}
.notice h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
}
.notice p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0;
}

/* Below 768px one column everywhere. */
@media (max-width: 767px) {
  .viewer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "kicker" "list" "right" "dl";
    gap: 12px;
    padding: 16px;
  }
  .viewer-list {
    flex-direction: row;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .viewer-list::-webkit-scrollbar {
    display: none;
  }
  .viewer-group,
  .viewer-no {
    display: none;
  }
  .viewer-list button {
    flex: none;
    padding: 6px 12px;
    border-radius: 16px;
    background: #f3f5f8;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
  }
  .viewer-list button:not(:disabled):hover {
    background: var(--navy-100);
  }
  .viewer-list [aria-pressed="true"],
  .viewer-list [aria-pressed="true"]:not(:disabled):hover {
    padding-left: 12px;
    border-left: 0;
    background: var(--brand);
    color: #fff;
    font-weight: 500;
  }
  .viewer-stage {
    min-height: 0;
    padding: 20px 16px 40px;
  }
  .viewer-paper {
    width: min(290px, 100% - 10px);
  }
  .viewer-dl {
    justify-self: stretch;
  }
  .pack-grid {
    grid-template-columns: 1fr;
  }
  .pack-card {
    padding: 24px;
  }
  .faq-list summary {
    padding: 20px;
  }
  .faq-list details p {
    padding: 12px 20px 20px;
  }
  .notice {
    padding-bottom: 64px;
  }
}
