/* The plain part of the home page and the questions page: text for readers
   and search engines. Ink on the page colour, DM Sans, one rule between
   sections. Nothing here moves. The footer and the button are in base.css. */

.lower {
  --lp: clamp(20px, 3.2vw, 56px);
  position: relative;
  /* Above the scene: whatever leaves the phone goes behind this part, never over it. */
  z-index: 8;
  background: var(--page);
}

.l-sec {
  position: relative;
  padding: clamp(40px, 6vw, 88px) var(--lp);
  border-top: 2px solid var(--ink);
}
.l-sec h3, .l-sec ul { margin: 0; }
.l-sec ul { padding: 0; list-style: none; }

/* section heading */
.l-head {
  max-width: 14em;
  margin: 0 0 clamp(24px, 3.4vw, 48px);
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

/* Also in talavo on the left, the two plans on the right. Small type and
   close rows: this part is here to be found, not to be admired. The section
   ends high enough above the footer rule for the sleeping cat. */
.lower { --catw: clamp(64px, 7.5vw, 116px); }
.l-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 26px clamp(32px, 5vw, 88px);
  align-items: start;
  padding-top: clamp(26px, 3.4vw, 48px);
  padding-bottom: calc(var(--catw) * 0.667 + 14px);
}
.l-duo .l-head {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(19px, 1.7vw, 24px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Nine things in a sentence each: the name runs into its line. */
.l-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px clamp(18px, 2.4vw, 36px);
}
.l-grid > div { font-size: 14.5px; line-height: 1.38; }
.l-grid h3 { display: inline; font-size: inherit; font-weight: 800; letter-spacing: -0.01em; }
.l-grid h3::after { content: "."; }
/* The gap between the name and its line is the space written between the
   two in the page, so a line may end there. Japanese and Chinese have their
   own full stop and no space after it, Hindi its own as well. */
.l-grid p { display: inline; }
:is(:lang(ja), :lang(zh)) .l-grid h3::after { content: "。"; }
:lang(hi) .l-grid h3::after { content: "।"; }

/* Free and Pro, always side by side */
.l-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(14px, 2vw, 32px);
}
.l-plans h3 { margin-bottom: 6px; font-size: 16px; font-weight: 900; letter-spacing: -0.02em; }
.l-plans li {
  padding: 6px 0;
  border-top: 1.5px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.l-plans li:last-child { border-bottom: 1.5px solid var(--ink); }
/* Another language has longer words than the English page was set for
   ("Hintergrundwiedergabe"): in the two narrow lists and in the feature grid
   a long word is divided before it leaves its column, the way the language
   does it where the browser knows how. */
html:not(:lang(en)) :is(.l-plans li, .l-plans h3, .l-grid > div) {
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
  hyphenate-limit-chars: 12 5 5;
}
.l-trial { margin-top: 14px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

/* The guides under the features: one quiet line of links, underlined like the
   links of the plain pages. Each link stays in one piece where it fits. */
.l-guides { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 18px 0 0; font-size: 14.5px; line-height: 1.38; }
.l-guides b { font-weight: 800; letter-spacing: -0.01em; }
.l-guides a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.l-guides a:hover { background: var(--mint); }

/* Questions. On the page of their own they are one column in the middle of
   the window, as wide as the text of the plain pages (page.css). */
.l-col { padding-inline: max(var(--lp), calc((100% - var(--measure)) / 2)); }
.l-col .l-head { font-size: clamp(32px, 4.6vw, 56px); }
/* There the list ends the page: the footer rule closes it. A rule of its own
   would leave a ruled band with nothing in it but the cat. */
.l-col .l-faq { border-bottom: 0; }
.l-faq { max-width: 46em; border-bottom: 1.5px solid var(--ink); }
.l-faq details { border-top: 1.5px solid var(--ink); }
.l-faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; flex: none; font-weight: 700; }
.l-faq details[open] summary::after { content: "\2212"; }
.l-faq details p { padding: 0 2.4em 20px 0; font-size: 16.5px; line-height: 1.5; }

@media (max-width: 1279px) {
  .l-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .l-duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .l-grid { grid-template-columns: 1fr; gap: 7px; }
  .l-faq details p { font-size: 16px; }
  .l-faq details p { padding-right: 0; }
}

/* the credits under the footer of the questions page */
.l-credits { max-width: 70ch; opacity: 0.8; }
