/* Attio pages (/attio/ hub, three verticals, migration). Revision 1, 2026-11-19.
   Loaded after styles.css and the VC industry sheet (hero grid, .vcx-textlink, sage vars).
   Real Attio screenshots, tables, timelines and checklists. No drawn product UI.
   No serif and no italic on these pages. Everything is scoped under .atx. */

.atx section[id] { scroll-margin-top: 88px; }
.atx-sec { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--border); }
.atx-sec--alt { background: var(--bg-elev); }
.atx .section__head { margin-bottom: clamp(2rem, 4vw, 3rem); gap: 1rem; }
.atx .section__title { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.05; max-width: 24ch; text-wrap: balance; }
.atx .section__sub { align-self: flex-start; max-width: 60ch; }
.atx .section__sub a,
.atx-callout a,
.atx-faq a,
.atx-table td a,
.atx-tile p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.atx .section__sub a:hover,
.atx-callout a:hover,
.atx-faq a:hover,
.atx-table td a:hover { text-decoration-color: var(--vcx-sage); }

/* ---------- hero ---------- */
.atx .vcx-hero__title { max-width: 18ch; }
.atx-hero--stack .vcx-hero__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 3.5rem); }
.atx-hero--stack .vcx-hero__title { max-width: 22ch; }
.atx-hero--stack .vcx-hero__lede { max-width: 62ch; }
.atx-hero .atx-shot img { max-height: 640px; width: auto; max-width: 100%; }
.atx-hero--stack .atx-shot img { max-height: none; width: 100%; }
.atx-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; font-size: 0.85rem; color: var(--text-soft); }
.atx-crumbs a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }

/* ---------- credential ---------- */
.atx-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.75rem; margin-bottom: 1.6rem;
  border: 1px solid var(--border-strong); border-radius: 99px; background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.atx-badge:hover { border-color: var(--text); box-shadow: var(--shadow-md); }
.atx-badge img { display: block; width: 20px; height: 20px; object-fit: contain; }
.atx-badge__name { font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; color: var(--text); }
.atx-badge__go {
  padding-left: 0.6rem; border-left: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft);
}
.atx-talk .atx-badge { margin: 1.8rem 0 0; }

/* ---------- real screenshots ---------- */
.atx-shot { margin: 0; min-width: 0; }
.atx-shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-diffuse);
}
.atx-shot figcaption { margin-top: 0.8rem; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.atx-example { margin: 0; min-width: 0; }
.atx-example .atx-table { margin: 0; box-shadow: var(--shadow-diffuse); }
.atx-example figcaption { margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- logos ---------- */
.atx-logo { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; font-weight: 500; color: var(--text); vertical-align: -0.2em; }
.atx-logo img { display: block; width: 18px; height: 18px; object-fit: contain; flex: none; }
.atx-logo-pair { display: inline-flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.atx-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin: 0 0 1.4rem; }
.atx-logos__label { margin: 0; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }
.atx-logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.atx-logos li { padding: 0.35rem 0.75rem; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); font-size: 0.88rem; }

/* ---------- tables (reuse .post-table) ---------- */
.atx-table { margin: 0; box-shadow: var(--shadow-sm); }
.atx-table caption { caption-side: top; text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }
.atx-table tbody th { font-family: inherit; font-size: 0.94rem; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 600; background: transparent; white-space: nowrap; }
.atx-table td { color: var(--text-muted); }
.atx-table tbody tr:last-child th { border-bottom: 0; }

/* ---------- checklist ---------- */
.atx-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.atx-check li { position: relative; padding-left: 2rem; line-height: 1.55; color: var(--text); }
.atx-check li::before {
  content: ""; position: absolute; left: 0; top: 0.1rem; width: 1.3rem; height: 1.3rem; border-radius: 99px;
  background: var(--vcx-sage-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6a5c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
  border: 1px solid var(--vcx-sage-line);
}

/* ---------- callout (one per page) ---------- */
.atx-callout {
  margin-top: clamp(1.8rem, 3vw, 2.4rem); padding: 1.2rem 1.4rem; max-width: 72ch;
  border: 1px solid var(--border); border-left: 3px solid var(--vcx-sage); border-radius: var(--radius-sm); background: var(--surface);
}
.atx-callout__label { margin: 0 0 0.4rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vcx-sage-ink); }
.atx-callout p:last-child { margin: 0; line-height: 1.6; color: var(--text); }

/* ---------- before / after ---------- */
.atx-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.atx-ba__col { padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.atx-ba__col--after { background: var(--surface); box-shadow: var(--shadow-md); }
.atx-ba__label { margin: 0 0 1.1rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }
.atx-ba__col--after .atx-ba__label { color: var(--vcx-sage-ink); }
.atx-ba ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.atx-ba li { position: relative; padding-left: 1.6rem; line-height: 1.55; color: var(--text-muted); }
.atx-ba li::before { content: ""; position: absolute; left: 0.2rem; top: 0.72em; width: 0.7rem; height: 2px; border-radius: 2px; background: var(--border-strong); }
.atx-ba__col--after li { color: var(--text); }
.atx-ba__col--after li::before {
  top: 0.15rem; left: 0; width: 1.1rem; height: 1.1rem; border-radius: 99px; background: var(--vcx-sage-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6a5c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

/* ---------- tiles and bento ---------- */
.atx-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.atx-tiles--bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.atx-tiles--bento > li { grid-column: span 2; }
.atx-tiles--bento > li:nth-child(-n + 2) { grid-column: span 3; }
.atx-tiles > li { display: flex; min-width: 0; }
.atx-tile {
  display: flex; flex-direction: column; gap: 0.6rem; width: 100%; min-width: 0;
  padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.atx-tile__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 0.4rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elev); color: var(--text); }
.atx-tile__tag { margin: 0; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vcx-sage-ink); }
.atx-tile__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.atx-tile p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.atx-tile .vcx-textlink { margin-top: auto; padding-top: 0.4rem; align-self: flex-start; }
.atx-tile--link { transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.atx-tile--link:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.atx-tile__go { margin-top: auto; padding-top: 0.6rem; font-weight: 500; color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.atx-terms { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.atx-terms li { padding: 0.2rem 0.55rem; border: 1px solid var(--border); border-radius: 99px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- step timeline ---------- */
.atx-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; counter-reset: none; }
.atx-tl__step { position: relative; display: grid; gap: 1rem; align-content: start; }
.atx-tl__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--border-strong); border-radius: 99px; background: var(--surface);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text);
}
.atx-tl:not(.atx-tl--v) .atx-tl__step:not(:last-child)::after { content: ""; position: absolute; top: 1.3rem; left: 2.6rem; right: -1.4rem; height: 1px; background: var(--border-strong); }
.atx-tl__tag { margin: 0 0 0.35rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vcx-sage-ink); }
.atx-tl__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.atx-tl p:last-child { margin: 0.5rem 0 0; color: var(--text-muted); line-height: 1.6; max-width: 62ch; }
.atx-tl p:last-child a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.atx-tl--v { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 820px; }
.atx-tl--v .atx-tl__step { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1.4rem; padding-bottom: 2rem; }
.atx-tl--v .atx-tl__step:not(:last-child)::after { content: ""; position: absolute; left: 1.3rem; top: 2.6rem; bottom: 0; width: 1px; background: var(--border-strong); }
.atx-tl--v .atx-tl__title { padding-top: 0.55rem; }

/* ---------- split: screenshot or table next to a checklist ---------- */
.atx-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.atx-split__b > .atx-check + .atx-srcline,
.atx-split__b > .atx-srcline { margin-top: 1.4rem; }
.atx-split__b > .vcx-textlink { margin-top: 1.2rem; }
.atx-srcline { margin: 1.2rem 0 0; font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; }
.atx-srcline a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }

/* ---------- security facts ---------- */
.atx-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.atx-facts > div { padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.atx-facts dt { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.atx-facts dd { margin: 0.45rem 0 0; color: var(--text-muted); line-height: 1.55; }
.atx-facts dd a { display: inline-block; margin-top: 0.6rem; font-size: 0.82rem; color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.atx-facts dd a:hover { color: var(--text); }

/* ---------- link list (guides, related) ---------- */
.atx-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.atx-links a { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1.2rem; align-items: baseline; padding: 1.1rem 0.2rem; border-bottom: 1px solid var(--border); transition: padding-left 0.3s var(--ease); }
.atx-links a:hover { padding-left: 0.6rem; }
.atx-links span:first-child { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vcx-sage-ink); }
.atx-links b { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.atx-links__go { color: var(--text-soft); }

/* ---------- FAQ (details / summary) ---------- */
.atx-faq { border-top: 1px solid var(--border); max-width: 880px; }
.atx-faq__item { border-bottom: 1px solid var(--border); }
.atx-faq__item summary { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 1.2rem; gap: 0.8rem; align-items: baseline; padding: 1.3rem 0.2rem; cursor: pointer; list-style: none; }
.atx-faq__item summary::-webkit-details-marker { display: none; }
.atx-faq__item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--text-soft); text-align: right; transition: transform 0.3s var(--ease); }
.atx-faq__item[open] summary::after { transform: rotate(45deg); color: var(--vcx-sage-ink); }
.atx-faq__item summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.atx-faq__n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-soft); }
.atx-faq__item h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.atx-faq__item > p { margin: 0 0 1.4rem 3.2rem; max-width: 66ch; color: var(--text-muted); line-height: 1.65; }

/* ---------- contact block ---------- */
.atx-talk { border-top: 1px solid var(--border); }
.atx-talk__title { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .atx-split { grid-template-columns: minmax(0, 1fr); }
  .atx-tiles, .atx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atx-tiles--bento > li, .atx-tiles--bento > li:nth-child(-n + 2) { grid-column: span 3; }
  .atx-tiles--bento > li:last-child { grid-column: 1 / -1; }
  .atx-hero .atx-shot img { max-height: 520px; }
}
@media (max-width: 760px) {
  .atx-tiles, .atx-tiles--bento, .atx-facts, .atx-ba { grid-template-columns: minmax(0, 1fr); }
  .atx-tiles--bento > li, .atx-tiles--bento > li:nth-child(-n + 2), .atx-tiles--bento > li:last-child { grid-column: auto; }
  .atx-tl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .atx-tl .atx-tl__step { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1.2rem; padding-bottom: 1.8rem; }
  .atx-tl:not(.atx-tl--v) .atx-tl__step:not(:last-child)::after { top: 2.6rem; bottom: 0; left: 1.3rem; right: auto; width: 1px; height: auto; }
  .atx-tl .atx-tl__step > div { padding-top: 0.5rem; }
  .atx-links a { grid-template-columns: minmax(0, 1fr) auto; }
  .atx-links span:first-child { grid-column: 1 / -1; }
  .atx-faq__item > p { margin-left: 0; }
  /* tables stack into labelled rows */
  .atx-table table, .atx-table tbody, .atx-table tr, .atx-table th, .atx-table td { display: block; }
  .atx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .atx-table caption { display: block; }
  .atx-table tbody tr { border-bottom: 1px solid var(--border); padding: 0.4rem 0; }
  .atx-table tbody tr:last-child { border-bottom: 0; }
  .atx-table tbody th, .atx-table td { border-bottom: 0; padding: 0.35rem 1.1rem; white-space: normal; }
  .atx-table td::before { content: attr(data-label); display: block; margin-bottom: 0.15rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .atx-tile--link, .atx-links a, .atx-faq__item summary::after { transition: none; }
}
