/* The content pages (tools, use cases, comparisons, help, blog): the paper look of the signed-out pages.
   Loaded after calm.css, which brings the tint, the tokens and the header. Phone width first; logical properties
   only, so a right-to-left page needs no second sheet. Both themes through the shared tokens and the few below. */
:root {
  --st-col: 680px;                 /* the reading column */
  --st-wide: 1040px;               /* tools and tables */
  --st-tint: #EEF4F2;              /* the soft mint-grey of a note */
  --st-card-1: #E8F0F8; --st-card-2: #E7F1EC; --st-card-3: #F5EEE6; --st-card-4: #EFEAF5;
  --st-out: #F6F7F7;
}
:root[data-theme="dark"] {
  --st-tint: #18211F;
  --st-card-1: #1A222B; --st-card-2: #1A2420; --st-card-3: #26211B; --st-card-4: #221E29;
  --st-out: #1C1F22;
}

/* ------------------------------------------------------------------ the frame */
.st-areas { display: flex; flex-wrap: wrap; gap: 6px; max-inline-size: var(--st-wide); margin: 0 auto; padding-block: 0 8px; padding-inline: 16px; }
.st-areas a { display: inline-flex; align-items: center; min-block-size: 32px; padding-inline: 12px; border-radius: 999px;
  font-size: 14px; color: var(--body); text-decoration: none; background: var(--cm-pill); }
.st-areas a:hover { color: var(--ink); }
.st-areas a[aria-current="page"] { background: var(--ink); color: var(--g-on); }
.st-main { max-inline-size: var(--st-col); margin: 0 auto; padding-block: 24px 48px; padding-inline: 16px; color: var(--body);
  font-size: 17px; line-height: 1.65; }
.st-main.st-tools, .st-wide { max-inline-size: var(--st-wide); }
.st-main :is(h2, h3) { color: var(--ink); font-weight: 500; line-height: 1.3; }
.st-main h2 { font-size: 24px; margin-block: 40px 12px; }
.st-main h3 { font-size: 19px; margin-block: 28px 8px; }
.st-main a { color: var(--ink); text-underline-offset: 3px; }
.st-main p { margin-block: 0 16px; }

/* ------------------------------------------------------------------ type */
.st-h1 { font-weight: 300; font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); margin-block: 8px 14px; }
.st-h1 b { font-weight: 500; }
.st-lead { font-size: 19px; line-height: 1.5; color: var(--body); margin-block: 0 28px; }
.st-prose { max-inline-size: var(--st-col); }
.st-prose :is(ul, ol) { padding-inline-start: 22px; margin-block: 0 16px; }
.st-prose li { margin-block: 4px; }
.st-checked { font-size: 13px; color: var(--cm-mute); margin-block: 32px 0; }

/* ------------------------------------------------------------------ numbered steps */
.st-steps { list-style: none; counter-reset: st-step; padding: 0; margin-block: 0 24px; display: grid; gap: 12px; }
.st-steps > li { counter-increment: st-step; position: relative; padding-inline-start: 44px; min-block-size: 30px; }
.st-steps > li::before { content: counter(st-step); position: absolute; inset-inline-start: 0; inset-block-start: 0;
  inline-size: 30px; block-size: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; background: var(--ink); color: var(--g-on); }

/* ------------------------------------------------------------------ a note, the facts table, a picture */
.st-note { background: var(--st-tint); border-radius: 14px; padding-block: 14px; padding-inline: 18px; margin-block: 0 20px; color: var(--ink-soft); }
.st-note > :last-child { margin-block-end: 0; }
.st-table { display: block; overflow-x: auto; margin-block: 0 24px; border: 1px solid var(--g-hair); border-radius: 14px; background: var(--g-card); }
.st-table table { border-collapse: collapse; inline-size: 100%; min-inline-size: 520px; font-size: 15px; }
.st-table :is(th, td) { text-align: start; padding-block: 10px; padding-inline: 14px; border-block-end: 1px solid var(--g-hair); vertical-align: top; }
.st-table tr:last-child :is(th, td) { border-block-end: 0; }
.st-table th { color: var(--ink); font-weight: 500; }
.st-table caption { text-align: start; padding-block: 10px; padding-inline: 14px; color: var(--cm-mute); font-size: 13px; }
.st-pic { margin-block: 0 24px; margin-inline: 0; padding: 16px; border-radius: 18px; background: var(--g-card); border: 1px solid var(--g-hair); }
.st-pic :is(svg, img) { display: block; inline-size: 100%; block-size: auto; }
.st-pic figcaption { margin-block-start: 10px; font-size: 14px; color: var(--cm-mute); }

/* ------------------------------------------------------------------ index cards */
.st-cards { list-style: none; padding: 0; margin-block: 0 32px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.st-card > a { display: flex; flex-direction: column; gap: 6px; block-size: 100%; padding-block: 18px; padding-inline: 20px;
  border-radius: 18px; text-decoration: none; background: var(--st-card-1); color: var(--body); transition: transform .15s; }
.st-card:nth-child(4n+2) > a { background: var(--st-card-2); }
.st-card:nth-child(4n+3) > a { background: var(--st-card-3); }
.st-card:nth-child(4n+4) > a { background: var(--st-card-4); }
.st-card > a:hover { transform: translateY(-2px); }
.st-card b { color: var(--ink); font-weight: 500; font-size: 18px; }
.st-card span { font-size: 15px; line-height: 1.5; }
.st-crumbs { font-size: 14px; color: var(--cm-mute); margin-block: 0 8px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.st-crumbs a { color: var(--cm-mute); }
.st-crumbs a + a::before { content: "/"; display: inline-block; margin-inline: 8px; color: var(--cm-mute); }

/* ------------------------------------------------------------------ the answer under the H1, the footer */
.st-answer { font-size: 19px; line-height: 1.55; color: var(--ink); margin-block: 0 24px; }
.st .ld-op { margin-inline-start: 10px; color: var(--cm-mute); }
.st-hubs { display: flex; flex-wrap: wrap; gap: 0 20px; }

/* ------------------------------------------------------------------ questions, the one line to the product */
.st-faq { margin-block: 0 24px; }
.st-faq details { border-block-end: 1px solid var(--g-hair); padding-block: 14px; }
.st-faq summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.st-faq details > :not(summary) { margin-block: 10px 0; }
.st-cta { margin-block: 32px 0; padding-block: 18px; padding-inline: 20px; border-radius: 18px; background: var(--g-card);
  border: 1px solid var(--g-hair); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.st-cta p { margin: 0; color: var(--ink); }

/* ------------------------------------------------------------------ a tool */
.st-tool { background: var(--g-card); border: 1px solid var(--g-hair); border-radius: 20px; padding: 18px; margin-block: 0 28px; display: grid; gap: 16px; }
.st-row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.st-field { display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.st-field label { font-size: 14px; color: var(--ink); font-weight: 500; }
.st-field :is(input, select, textarea) { font: inherit; font-size: 16px; color: var(--ink); background: var(--page);
  border: 1px solid var(--g-edge); border-radius: 10px; padding-block: 9px; padding-inline: 12px; min-inline-size: 0; }
.st-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.st-out { background: var(--st-out); border-radius: 14px; padding-block: 14px; padding-inline: 16px; color: var(--ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-block-size: 48px; }

/* ------------------------------------------------------------------ wider screens */
@media (min-width: 720px) {
  .st-areas { padding-inline: 32px; }
  .st-main { padding-inline: 32px; padding-block: 40px 64px; }
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .st-tool { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-card > a { transition: none; }
  .st-card > a:hover { transform: none; }
}
