/* screen.css - Ghost pages on top of the home page's diveo-ds.css and home.css (white theme, blue accent). */

.dm-page {
  --ls-line: #d5dbff;
  --ls-text-size: clamp(16px, 2.4vw, 20px);
  /* The carousels reach the screen edge; nothing else may widen the page. */
  overflow-x: clip;
}
.dm-footer-logo { width: 80px; }

/* Sections of the page's HTML card */
.ls-section { position: relative; padding: 75px 0; font-size: var(--ls-text-size); line-height: 1.45; }
.ls-section--lg { padding: 130px 0; }
@media (max-width: 800px) {
  .ls-section { padding: 50px 0; }
  .ls-section--lg { padding: 80px 0; }
}
.ls-section > * { position: relative; z-index: 1; }
.ls-section p { margin: 0; }
.ls-section h2 { margin: 0 0 40px; font-size: clamp(28px, 5vw, 44px); line-height: 1.25; font-weight: 700; text-align: center; }
.ls-section h3 { margin: 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.25; font-weight: 700; }
.ls-section .ls-lead { max-width: 860px; margin: -16px auto 48px; text-align: center; }

/* Background waves, the home page's shapes */
.ls-hero { overflow: hidden; }
.ls-hero::before,
#made-by-people::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  pointer-events: none;
  background: no-repeat center / 100% 100%;
}
.ls-hero::before { top: 0; width: 3482px; height: 777px; transform: translateX(-50%); background-image: url("../images/wave-top.svg"); }
#made-by-people::before { top: 50%; width: 2445px; height: 726px; transform: translate(-50%, -45%); background-image: url("../images/wave-band.svg"); }

/* 2 · Hero */
.ls-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.ls-hero__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ls-hero__image { flex: 1.2 1 480px; min-width: 0; }
.ls-hero__image img { width: 100%; height: auto; display: block; border-radius: 24px; }
.ls-eyebrow { font-size: 16px; line-height: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dm-color-accent); }
.ls-hero h1 { margin: 0; font-family: var(--dm-font-display); font-weight: 700; font-size: 52px; line-height: 64px; }
@media (max-width: 1100px) {
  .ls-hero h1 { font-size: 40px; line-height: 1.2; }
}
@media (max-width: 800px) {
  .ls-hero__text { text-align: center; }
}
@media (max-width: 500px) {
  .ls-hero h1 { font-size: 32px; }
}

/* 3 · Ratings band */
.ls-proof { background: var(--dm-color-surface); padding: 40px 0; }
.ls-proof__list { margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ls-proof__list > div { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; text-align: center; }
.ls-proof__list dt { font-size: 18px; line-height: 26px; font-weight: 500; }
.ls-proof__list dd { margin: 0; font-family: var(--dm-font-display); font-size: clamp(34px, 6vw, 56px); line-height: 1.1; color: var(--dm-color-accent); }
@media (max-width: 600px) {
  .ls-proof__list { grid-template-columns: 1fr; }
}

/* App screenshots: a frame in the text colour */
.ls-shot,
.dm-carousel > img {
  display: block;
  box-sizing: border-box;
  border: 4px solid var(--dm-color-text);
  border-radius: 24px;
}

/* 4 · How it works */
.ls-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ls-steps li { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.ls-steps .ls-shot { width: 100%; height: auto; }
.ls-steps h3 span { font-family: var(--dm-font-display); color: var(--dm-color-accent); margin-right: 6px; }
@media (max-width: 800px) {
  .ls-steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* 5 · Gallery of stories: equal cards, credits at the bottom over a line */
.ls-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ls-story { background: var(--dm-color-surface); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.ls-story img { display: block; width: 100%; max-width: 273px; height: auto; margin: 0 auto 8px; }
.ls-story h3 { text-align: center; }
.ls-story .ls-story__length { color: var(--dm-color-accent); font-weight: 600; text-align: center; }
.ls-story__credits {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--ls-line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 16px;
  line-height: 24px;
}
.ls-story__credits dt { color: var(--dm-color-muted); }
.ls-story__credits dd { margin: 0; font-weight: 600; }
@media (max-width: 1000px) {
  .ls-stories { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 500px) {
  .ls-story { padding: 24px; }
}

/* 6, 7 · Carousel: the first picture starts at the content's left edge, the strip runs to the screen edge */
.dm-carousel {
  --edge: max(25px, calc((100% - 1210px) / 2 + 25px));
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--edge);
  padding: 8px var(--edge) 24px;
  box-sizing: border-box;
  width: 100%;
  /* Scrolls by swipe and trackpad without a scrollbar, as the home page's strip */
  scrollbar-width: none;
}
.dm-carousel::-webkit-scrollbar { display: none; }
.dm-carousel > * {
  flex: none;
  width: 560px;
  max-width: 80vw;
  height: auto;
  scroll-snap-align: start;
}
@media (max-width: 500px) {
  .dm-carousel { --edge: 15px; }
}
/* Inside a page's text column the carousel leaves the column and spans the screen */
.dm-prose .dm-carousel { width: 100vw; margin-left: calc(50% - 50vw); }

/* 8 · Languages */
.ls-narrow { max-width: 760px; margin: 0 auto; }
.ls-languages { width: 100%; border-collapse: collapse; margin-bottom: 32px; font-size: clamp(15px, 2.2vw, 18px); line-height: 1.4; }
.ls-languages th,
.ls-languages td { padding: 12px 16px; border-bottom: 1px solid var(--ls-line); text-align: center; }
.ls-languages thead th { font-weight: 700; border-bottom: 2px solid var(--dm-color-text); }
.ls-languages thead th:first-child,
.ls-languages th[scope="row"] { text-align: left; }
.ls-languages th[scope="row"] { font-weight: 500; }
.ls-yes { color: var(--dm-color-accent); font-weight: 700; }
.ls-no { color: var(--dm-color-muted); }
.ls-narrow > p { text-align: center; }
@media (max-width: 500px) {
  .ls-languages th,
  .ls-languages td { padding: 10px 6px; }
}

/* 9 · FAQ: plus turns into a cross on the open question */
.ls-faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ls-faq details { background: var(--dm-color-surface); border-radius: 20px; }
.ls-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; }
.ls-faq summary::-webkit-details-marker { display: none; }
.ls-faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(var(--dm-color-accent), var(--dm-color-accent)) center / 100% 3px no-repeat,
    linear-gradient(var(--dm-color-accent), var(--dm-color-accent)) center / 3px 100% no-repeat;
  transition: transform var(--dm-transition);
}
.ls-faq details[open] summary::after { transform: rotate(45deg); }
.ls-faq summary h3 { font-size: clamp(18px, 2.6vw, 22px); line-height: 1.35; font-weight: 600; }
.ls-faq details > p { padding: 0 28px 24px; }
@media (max-width: 500px) {
  .ls-faq summary { padding: 20px; }
  .ls-faq details > p { padding: 0 20px 20px; }
}

/* 10 · Download: the badges stay in one row and shrink */
.ls-badges { display: flex; justify-content: center; gap: clamp(8px, 2vw, 24px); }
.ls-badges > a { flex: 1 1 0; min-width: 0; max-width: 200px; }

/* page.hbs and post.hbs: the editor's content */
.dm-page-content { padding-top: 75px; padding-bottom: 75px; }
@media (max-width: 800px) {
  .dm-page-content { padding-top: 50px; padding-bottom: 50px; }
}
.dm-page-title { margin: 0 0 32px; font-family: var(--dm-font-display); font-weight: 700; font-size: 52px; line-height: 64px; }
@media (max-width: 1100px) {
  .dm-page-title { font-size: 40px; line-height: 1.2; }
}
@media (max-width: 500px) {
  .dm-page-title { font-size: 32px; }
}
.dm-page-date { margin: -16px 0 32px; color: var(--dm-color-muted); font-size: 16px; }
.dm-page-image { display: block; width: 100%; height: auto; border-radius: 24px; margin-bottom: 40px; }
.dm-prose { font-size: var(--ls-text-size); line-height: 1.45; }
.dm-prose > * + * { margin-top: 1em; }
.dm-prose h2 { margin-top: 1.6em; font-size: clamp(28px, 5vw, 44px); line-height: 1.25; font-weight: 700; }
.dm-prose h3 { margin-top: 1.4em; font-size: clamp(24px, 4vw, 32px); line-height: 1.25; font-weight: 700; }
.dm-prose h4 { margin-top: 1.2em; font-size: 20px; line-height: 1.35; font-weight: 700; }
.dm-prose a { color: var(--dm-color-accent); text-decoration: underline; text-underline-offset: 3px; }
.dm-prose ul,
.dm-prose ol { padding-left: 1.4em; }
.dm-prose li + li { margin-top: 0.4em; }
.dm-prose blockquote { margin-left: 0; padding: 16px 24px; border-left: 4px solid var(--dm-color-accent); background: var(--dm-color-surface); border-radius: 0 24px 24px 0; }
.dm-prose img { max-width: 100%; height: auto; border-radius: 24px; }
.dm-prose hr { border: 0; border-top: 1px solid var(--ls-line); }
.dm-prose figcaption { margin-top: 8px; font-size: 16px; color: var(--dm-color-muted); text-align: center; }
.dm-post-item h2 a { text-decoration: none; color: inherit; }

/* Ghost editor card widths */
.kg-width-wide { position: relative; width: 100%; }
.kg-width-full { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.kg-width-full img { border-radius: 0; }
