/* Inner pages (features, pricing, about, blog, guides, 404). Tokens from tokens.css only.
   site.css is not loaded here, so base html/body/type live in this file. Header and footer: nav.css. */

@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--canvas);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}

/* Page frame */
:root {
  --section: clamp(64px, 8vw, 112px);
}

.page {
  display: grid;
  width: min(100% - var(--s-32), 1120px);
  grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
  gap: var(--section);
  padding-top: var(--s-48);
}

.page-head {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: var(--s-12);
  color: var(--muted);
  font-size: var(--fs-14);
  font-weight: 600;
}

.page-head h1 {
  margin-bottom: var(--s-16);
  font-size: var(--fs-40);
}

.lede {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--fs-20);
  line-height: 1.5;
}

/* Question and answer prose */
.prose {
  display: grid;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  gap: var(--s-48);
}

.qa h2 {
  margin-bottom: var(--s-12);
  font-size: var(--fs-28);
}

.qa p,
.qa ul {
  margin-bottom: var(--s-12);
}

.qa > :last-child {
  margin-bottom: 0;
}

.qa .answer {
  font-weight: 500;
}

.qa ul {
  padding-left: var(--s-24);
}

.qa li + li {
  margin-top: var(--s-4);
}

/* Cards: related features, link lists */
.related h2 {
  margin-bottom: var(--s-24);
  font-size: var(--fs-28);
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--s-16);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  height: 100%;
  min-height: var(--tap);
  gap: var(--s-4);
  border-radius: var(--r-20);
  background: var(--surface);
  padding: var(--s-24);
  box-shadow: var(--shadow-1);
  text-decoration: none;
}

.card strong {
  font-size: var(--fs-16);
}

.card span {
  color: var(--muted);
  font-size: var(--fs-14);
}

.card {
  transition: box-shadow .15s ease, transform .15s ease;
}

.card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.card:hover strong {
  text-decoration: underline;
}

/* Plain fact list (about page) */
.facts {
  display: grid;
  gap: var(--s-8);
  margin: 0;
  border-radius: var(--r-20);
  background: var(--surface);
  padding: var(--s-24);
  box-shadow: var(--shadow-1);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: var(--s-16);
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

/* Call to action: black card, the one lime button on screen */
.cta {
  display: grid;
  justify-items: center;
  gap: var(--s-16);
  border-radius: var(--r-28);
  background: var(--ink);
  color: var(--surface);
  padding: var(--s-48);
  box-shadow: var(--shadow-2);
  text-align: center;
}

.cta h2 {
  max-width: 20ch;
  margin: 0;
  font-size: var(--fs-28);
}

.cta p {
  max-width: 56ch;
  margin: 0;
  color: var(--side-muted);
}

.cta :focus-visible {
  outline-color: var(--surface);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--surface);
  padding: var(--s-12) var(--s-24);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-2);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  filter: brightness(.97);
}

.link-list {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
}

@media (max-width: 640px) {

  .page {
    padding-top: var(--s-32);
  }

  .page-head h1 {
    font-size: var(--fs-28);
  }

  .lede {
    font-size: var(--fs-16);
  }

  .qa h2 {
    font-size: var(--fs-20);
  }

  .cta {
    padding: var(--s-32) var(--s-24);
  }

  .cta h2 {
    font-size: var(--fs-20);
  }

  .cta .btn {
    width: 100%;
  }

  .facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* About: founder photo */
.founder-photo {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: var(--r-20);
  object-fit: cover;
  margin-bottom: var(--s-16);
}

/* Inner page head: helper small above centred words. Articles have no .page-hero, so keep their own layout. */
.page-hero {
  display: grid;
  justify-items: center;
  gap: var(--s-16);
}

.page-hero-char {
  display: flex;
  order: -1;
  justify-content: center;
  gap: var(--s-8);
}

.page-hero-char .av-svg {
  width: 96px;
  height: 96px;
}

.page-hero-char:has(> :nth-child(3)) .av-svg {
  width: 56px;
  height: 56px;
}

.page-hero .page-head {
  text-align: center;
}

.page-hero .page-head h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
}

.page-hero .lede {
  margin-inline: auto;
}

.hero-cta {
  margin-top: var(--s-24);
}

/* Section with a centred heading and a wide visual below it. */
.page-scene h2 {
  margin-bottom: var(--s-24);
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  text-align: center;
}

.page-scene > p {
  max-width: 60ch;
  margin: 0 auto var(--s-32);
  color: var(--muted);
  font-size: var(--fs-20);
  line-height: 1.5;
  text-align: center;
}

/* The scene straight after the title sits closer than a normal section. */
.page-hero + .page-scene {
  margin-top: calc(var(--s-48) - var(--section));
}

/* "What changes": short points across the page. */
.changes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--s-24);
  margin: 0;
  padding: 0;
  list-style: none;
}

.changes li {
  border-top: 2px solid var(--ink);
  padding-top: var(--s-12);
  font-weight: 500;
  line-height: 1.4;
}

/* Fold-out questions */
.faq h2 {
  margin-bottom: var(--s-16);
  font-size: var(--fs-28);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  padding-block: var(--s-12);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: var(--fs-20);
  font-weight: 500;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin-bottom: var(--s-16);
}

@media (max-width: 640px) {
  .page-scene > p {
    font-size: var(--fs-16);
  }

  .faq h2 {
    font-size: var(--fs-20);
  }
}

/* Inner pages: team line-up, Alfred lines, thanks and privacy heads */
.team {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-24);
  margin: 0 0 var(--s-48);
  padding: 0;
  list-style: none;
  text-align: center;
}

.team li {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
}

.team span {
  color: var(--muted);
  font-size: var(--fs-14);
}

.alfred-line {
  margin-top: var(--s-12);
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 720px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Post cards: blog and guide indexes, and the related list on Solutions pages. */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-16); }
.post-card { display: flex; gap: var(--s-24); align-items: center; padding: var(--s-24); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-20); box-shadow: var(--shadow-1); }
.post-card-char { flex: none; }
.post-card a { display: inline-flex; min-height: var(--tap); align-items: center; font-size: var(--fs-20); font-weight: 600; letter-spacing: var(--track-tight); color: var(--ink); text-decoration: none; }
.post-card a:hover, .post-card a:focus-visible { text-decoration: underline; }
.post-card p { margin: var(--s-8) 0; color: var(--muted); }
.post-card time { font-size: var(--fs-14); color: var(--muted); }
@media (max-width: 720px) { .post-card { flex-direction: column; align-items: flex-start; gap: var(--s-12); padding: var(--s-16); } }
