/* PDF tools (/tools, /tools/<slug>) — r70. iLovePDF's shape in SuperOffice's clothes:
   navy bar, paper grounds, hairlines, one gold action per screen.
   Type scale 11/13/14/15/18/28 only; inputs go to 16px on a phone so iOS does not zoom. */
body { margin: 0; background: var(--so-paper-100); color: var(--so-ink-900); }
[hidden] { display: none !important; }

/* ---- the bar ---- */
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px; background: var(--so-bar); color: #fff; }
.lockup { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.lockup img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 2px #3f5a82; }
.lockup .word { font: 700 15px/1.1 var(--so-font); letter-spacing: 2.4px; }
.lockup .word small { display: block; margin-top: 3px; font-size: 11px; letter-spacing: 3px; color: var(--so-gold-400); }
.bar .grow { flex: 1 1 auto; }
.lockup { flex: none; }
.bar-div { flex: none; width: 1px; height: 28px; background: rgba(255,255,255,.28); }
.bar-title { min-width: 0; font: 600 15px/20px var(--so-font); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barlink { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--so-r-pill);
  border: 1px solid rgba(255,255,255,.38); color: #fff; font: 600 13px var(--so-font); text-decoration: none; white-space: nowrap; }
.barlink:hover { background: #2c4c7c; border-color: var(--so-gold); }
.barlink:focus-visible, .lockup:focus-visible, .so-lang:focus-visible { outline: 2px solid var(--so-gold); outline-offset: 2px; }
.so-lang { min-height: 40px; padding: 0 10px; border-radius: var(--so-r-pill); border: 1px solid rgba(255,255,255,.38);
  background: transparent; color: #fff; font: 600 13px var(--so-font); cursor: pointer; }
.so-lang option { color: var(--so-ink-900); background: var(--so-paper-000); }
@media (max-width: 700px) {
  .bar { padding: 0 16px; gap: 8px; }
  .lockup .word { display: none; }
  .barlink .lg { display: none; }
  .so-lang { font-size: 16px; max-width: 100px; padding: 0 6px; }
  .barlink { padding: 0 10px; }
}

/* r74: a visitor — Sign in · Start free where the account button would be */
.guest { display: inline-flex; flex: none; gap: 8px; }
.barlink.g-start { border-color: var(--so-gold); color: var(--so-gold-400); }
.barlink.g-start:hover { color: #fff; }
@media (max-width: 600px) {
  .visitor .bar-div, .visitor .bar-title, .visitor .barlink[href="/tools"] { display: none; }
}
@media (max-width: 480px) {
  .visitor .bar { gap: 6px; padding: 0 12px; }
  .visitor .so-lang { max-width: 64px; }
  .guest { gap: 6px; }
  .guest .barlink { padding: 0 10px; font-size: 12px; }
}
/* the narrowest phones: Start free stays; a server tool's own line still links Sign in */
@media (max-width: 380px) { .guest #g-in { display: none; } }

/* ---- /tools: the grid ---- */
.hub { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
.hub-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hub-head h1 { margin: 0; flex: 1 1 auto; font: 700 28px/34px var(--so-font); }
.search { position: relative; flex: 0 1 320px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--so-ink-500); pointer-events: none; }
.search input { width: 100%; box-sizing: border-box; padding-left: 38px; }
.group { margin-bottom: 32px; }
.group h2 { margin: 0 0 12px; font: 600 15px/20px var(--so-font); color: var(--so-ink-600); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tcard { display: flex; align-items: flex-start; gap: 14px; height: 100%; box-sizing: border-box; padding: 16px; border-radius: var(--so-r-lg);
  background: var(--so-paper-000); border: 1px solid var(--so-stone-200); color: inherit; text-decoration: none;
  transition: border-color 140ms, box-shadow 140ms; }
.tcard:hover { border-color: var(--so-gold); box-shadow: 0 0 0 1px var(--so-gold), 0 0 14px var(--gl-halo); }
.tcard:focus-visible { outline: 2px solid var(--so-navy-900); outline-offset: 2px; }
.ticon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--so-r-md);
  background: var(--so-navy-050); color: var(--so-navy-900); }
.tcard b { display: block; font: 600 15px/20px var(--so-font); }
.tcard span.d { display: block; margin-top: 2px; font: 500 13px/18px var(--so-font); color: var(--so-ink-500); }
.none { padding: 32px 16px; text-align: center; border: 1px dashed var(--so-stone-300); border-radius: var(--so-r-lg); color: var(--so-ink-600); font-size: 14px; }
@media (max-width: 700px) {
  .hub { padding: 24px 16px 48px; }
  .search { flex: 1 1 100%; }
  .search input { font-size: 16px; }
  .cards { grid-template-columns: 1fr; gap: 8px; }
  .tcard { padding: 12px 14px; align-items: center; }
}

/* ---- /tools/<slug>: the frame ----
   A flex column, so whatever sits above the stage (the bar, the impersonation strip)
   is subtracted for free — a fixed calc(100dvh - 64px) pushed the action below the
   fold the moment the strip appeared. On a desktop the window never scrolls in Work:
   the pages scroll inside the stage and the action stays at the foot of the panel. */
.toolpage { min-height: 100dvh; display: flex; flex-direction: column; }
.toolpage > * { flex: none; }
.toolpage > .toolmain { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.toolmain > section { flex: 1 0 auto; }
@media (min-width: 901px) {
  .toolpage { height: 100dvh; }
  .toolpage > .toolmain { overflow-y: auto; }
  .toolmain > .work { flex: 1 1 auto; min-height: 0; }
  .work > .stage { overflow-y: auto; }
  .work > .panel { min-height: 0; }
}

/* ---- /tools/<slug>: Pick ---- */
.pick { box-sizing: border-box; padding: 56px 24px; text-align: center; }
.pick h1 { margin: 0; font: 700 28px/34px var(--so-font); }
.pick .sub { margin: 12px auto 0; max-width: 560px; font: 500 15px/22px var(--so-font); color: var(--so-ink-600); }
.dropzone { box-sizing: border-box; margin: 32px auto 0; max-width: 720px; padding: 64px 24px; border-radius: var(--so-r-xl);
  border: 2px dashed var(--so-stone-300); background: var(--so-paper-000); transition: border-color 140ms, background-color 140ms; }
.dragging .dropzone { border-color: var(--so-gold); background: var(--so-paper-050); }
.btn.big { box-sizing: border-box; min-height: 64px; min-width: 300px; padding: 0 32px; font-size: 18px; border-radius: var(--so-r-lg); }
.dropzone .cap { margin-top: 12px; font: 500 13px/18px var(--so-font); color: var(--so-ink-500); }
.anon { margin: 14px auto 0; max-width: 520px; font: 500 13px/19px var(--so-font); color: var(--so-ink-600); }
.anon a { color: var(--so-navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.anon a:focus-visible { outline: 2px solid var(--so-gold); outline-offset: 2px; border-radius: 2px; }
.panel-foot .anon { margin: 0 0 10px; text-align: left; }
.loading { margin-top: 16px; font: 500 13px var(--so-font); color: var(--so-ink-600); }
@media (max-width: 700px) {
  .pick { padding: 40px 16px; }
  .btn.big { min-width: 0; width: 100%; }
  .dropzone { padding: 24px 16px; }
  .dropzone .cap { display: none; }
}

/* ---- Work ---- */
.work { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.stage { padding: 24px 32px 48px; min-width: 0; }
.stage-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; min-height: 40px; }
.stage-head .what { flex: 1 1 auto; min-width: 0; font: 600 15px/20px var(--so-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-head .what small { font: 500 13px var(--so-font); color: var(--so-ink-500); margin-left: 8px; }
.hist { display: flex; gap: 6px; }
.btn.addbtn { border: 1.5px solid var(--so-navy-900); background: var(--so-paper-000); color: var(--so-navy-900); padding: 0 16px 0 12px; gap: 6px; }
.addtile { display: flex; }
.addtile button { flex: 1 1 auto; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--so-stone-300); border-radius: var(--so-r-lg); background: transparent; color: var(--so-navy-900);
  font: 600 14px var(--so-font); cursor: pointer; transition: border-color 140ms, background-color 140ms; }
.addtile button:hover { border-color: var(--so-gold); background: var(--so-paper-050); }
.addtile button:focus-visible { outline: 2px solid var(--so-navy-900); outline-offset: 2px; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 20px; }
.th { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 12px 10px;
  border-radius: var(--so-r-lg); border: 1px solid var(--so-stone-200); background: var(--so-paper-000); user-select: none; }
.th .pic { display: grid; place-items: center; width: 200px; height: 260px; }
.th .pg { position: relative; display: grid; place-items: center; }
.th .ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; font-family: Helvetica, Arial, sans-serif; }
.th .ov .wm { fill: var(--so-navy); }
.th .ov .pn { fill: var(--so-navy); }
.th canvas, .th img { max-width: 200px; max-height: 260px; box-shadow: 0 0 0 1px var(--so-stone-200); background: #fff; transition: transform 200ms var(--so-ease); }
.th .ph { width: 184px; height: 260px; box-shadow: 0 0 0 1px var(--so-stone-200); background: var(--so-paper-050); }
.th .lbl { max-width: 100%; font: 500 13px/18px var(--so-font); color: var(--so-ink-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.th .meta { font: 500 11px/16px var(--so-font); color: var(--so-ink-500); font-variant-numeric: tabular-nums; }
.sortable .th { cursor: grab; }
.sortable .th:active { cursor: grabbing; }
.th.ghost { opacity: .4; }
.pickable .th { cursor: pointer; }
.pickable .th:hover { border-color: var(--so-gold); }
.th.on { border-color: var(--so-gold); box-shadow: 0 0 0 1px var(--so-gold); background: var(--so-gold-050); }
.th .mark { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--so-stone-300); background: var(--so-paper-000); color: transparent; }
.th.on .mark { background: var(--so-gold); border-color: var(--so-gold-600); color: var(--so-navy); }
.mode-remove .th.on canvas { opacity: .35; }
.th .acts { display: flex; gap: 6px; opacity: 0; transition: opacity 140ms; }
.th:hover .acts, .th:focus-within .acts { opacity: 1; }
.th .ord { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box;
  border-radius: var(--so-r-pill); background: var(--so-navy); color: #fff; font: 700 13px/1 var(--so-font); font-variant-numeric: tabular-nums; }
@media (hover: none), (max-width: 600px) { .th .acts { opacity: 1; } }
.iconbtn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: var(--so-r-md);
  border: 1px solid var(--so-stone-300); background: var(--so-paper-000); color: var(--so-navy-900); cursor: pointer; }
.iconbtn:hover { background: var(--so-btn-hover); border-color: var(--so-gold); color: #fff; }
.iconbtn:focus-visible { outline: 2px solid var(--so-navy-900); outline-offset: 2px; }
.iconbtn:disabled, .iconbtn:disabled:hover { opacity: .4; cursor: default; background: var(--so-paper-000); border-color: var(--so-stone-300); color: var(--so-navy-900); }
.work.slim { grid-template-columns: minmax(0, 1fr) 280px; }
.work.slim .panel-in { display: none; }
.work.slim .panel-foot { border-top: 0; padding-top: 24px; }

.panel { display: flex; flex-direction: column; border-left: 1px solid var(--so-stone-200); background: var(--so-paper-000); }
.panel-in { flex: 1 1 auto; padding: 24px; overflow-y: auto; }
.panel h2 { margin: 0 0 24px; font: 700 18px/24px var(--so-font); }
.opt { margin-bottom: 24px; }
.opt > .flabel, .opt > label.flabel { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 14px; }
.opt .fin { width: 100%; box-sizing: border-box; }
.tip { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--so-stone-300);
  font: 600 11px var(--so-font); color: var(--so-ink-500); cursor: help; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 auto; min-height: 40px; padding: 0 12px; border-radius: var(--so-r-md); border: 1px solid var(--so-stone-300);
  background: var(--so-paper-000); color: var(--so-navy-900); font: 600 13px var(--so-font); cursor: pointer; }
.seg button:hover { border-color: var(--so-gold); }
.seg button[aria-pressed="true"] { background: var(--so-gold); border-color: var(--so-gold-600); color: var(--so-navy); }
.seg button:focus-visible { outline: 2px solid var(--so-navy-900); outline-offset: 2px; }
.levels { display: grid; gap: 8px; }
.levels button { text-align: left; padding: 12px 14px; min-height: 56px; }
.levels button span { display: block; margin-top: 2px; font: 500 13px/18px var(--so-font); color: var(--so-ink-500); }
.levels button[aria-pressed="true"] span { color: var(--so-navy); }
.posgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 216px; }
.posgrid button { flex: none; display: grid; min-height: 48px; padding: 7px 9px; }
.posgrid button i { display: block; width: 14px; height: 4px; border-radius: 2px; background: currentColor; align-self: end; justify-self: center; }
.posgrid i.p-tl, .posgrid i.p-tc, .posgrid i.p-tr { align-self: start; }
.posgrid i.p-tl, .posgrid i.p-bl { justify-self: start; }
.posgrid i.p-tr, .posgrid i.p-br { justify-self: end; }
.hint { margin: -12px 0 24px; font: 500 13px/18px var(--so-font); color: var(--so-ink-500); }
.range { width: 100%; accent-color: var(--so-navy); }
.rangeval { font: 600 13px var(--so-font); color: var(--so-ink-600); font-variant-numeric: tabular-nums; }
.panel-foot { padding: 16px 24px 24px; border-top: 1px solid var(--so-stone-200); }
.panel-foot .btn { width: 100%; min-height: 44px; font-size: 15px; }
.err { margin: 0 0 12px; font: 500 13px/18px var(--so-font); color: var(--so-danger-600); }
.err a { color: inherit; font-weight: 600; }
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; min-height: 0; }
  .stage { padding: 16px 16px 24px; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .th .pic { width: 140px; height: 182px; }
  .th canvas, .th img { max-width: 140px; max-height: 182px; }
  .th .ph { width: 128px; height: 182px; }
  .work.slim { grid-template-columns: 1fr; }
  .addtile button { min-height: 200px; }
  .panel { border-left: 0; border-top: 1px solid var(--so-stone-200); }
  .panel-in { padding: 24px 16px 8px; overflow: visible; }
  /* the action stays under the thumb while the pages scroll above it */
  .work { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .panel-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--so-paper-000); }
  .opt .fin { font-size: 16px; }
}

/* ---- Done ----
   r72: the result first, one large page at a time (arrows, count, swipe, ←/→), the file's
   name · size · pages under the title, Download (gold) → Share (navy, phones that can) →
   Start over (quiet). Desktop: the page on the left, the words and actions beside it. */
.done { box-sizing: border-box; width: 100%; max-width: 1040px; margin: 0 auto; padding: 40px 24px 64px; }
.done-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "pager head" "pager acts"; column-gap: 40px; row-gap: 24px; align-items: start; }
.done-head { grid-area: head; align-self: end; min-width: 0; }
.pager { grid-area: pager; min-width: 0; }
.done-acts { grid-area: acts; display: flex; flex-direction: column; gap: 12px; }
.done .tick { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 16px; border-radius: 50%; background: var(--so-success); color: #fff; }
.done h1 { margin: 0; font: 700 28px/34px var(--so-font); }
.done .fmeta { margin: 8px 0 0; font: 500 14px/20px var(--so-font); color: var(--so-ink-600); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.done .fmeta b { font-weight: 600; color: var(--so-ink-900); }
.done .size { margin: 8px 0 0; font: 500 15px/22px var(--so-font); color: var(--so-ink-600); font-variant-numeric: tabular-nums; }
.done .size b { color: var(--so-success-600); font-weight: 700; }
.done-acts .btn { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn.btn-navy { background: var(--so-navy); border-color: var(--so-navy); color: #fff; }
.btn.btn-quiet { background: transparent; border-color: var(--so-stone-300); color: var(--so-navy-900); font-weight: 600; }
.done-acts .btn:focus-visible, .pg-view:focus-visible, .pg-arrow:focus-visible { outline: 2px solid var(--so-navy-900); outline-offset: 3px; }
/* the pager */
.pg-stage { position: relative; }
.pg-view { box-sizing: border-box; display: grid; place-items: center; width: 100%; height: min(60dvh, 600px); padding: 20px; border: 0; border-radius: var(--so-r-lg);
  background: var(--so-stone-200); cursor: zoom-in; touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: hidden; }
.pg-view canvas, .pg-view img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; box-shadow: 0 1px 3px rgba(11, 29, 50, .18), 0 0 0 1px var(--so-stone-300); pointer-events: none; }
.pg-view .ph { display: block; width: min(60%, 320px); aspect-ratio: 210 / 297; max-height: 100%; background: var(--so-paper-050); box-shadow: 0 0 0 1px var(--so-stone-300); }
.pg-view.loading-pic > * { opacity: .55; transition: opacity 140ms; }
.pg-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1px solid var(--so-navy); background: var(--so-navy); color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(11, 29, 50, .25); }
.pg-arrow.pg-prev { left: 12px; }
.pg-arrow.pg-next { right: 12px; }
.pg-arrow:hover { background: var(--so-btn-hover); border-color: var(--so-gold); }
.pg-arrow:disabled { opacity: .3; cursor: default; box-shadow: none; }
.pg-arrow:disabled:hover { background: var(--so-navy); border-color: var(--so-navy); }
.pg-count { min-height: 20px; margin-top: 10px; text-align: center; font: 600 14px/20px var(--so-font); color: var(--so-ink-600); font-variant-numeric: tabular-nums; }
.pg-label { margin-top: 2px; text-align: center; font: 500 13px/18px var(--so-font); color: var(--so-ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the loader while a file is made: centred, over everything, so nothing is pressed twice */
.busyveil { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--so-paper-100) 72%, transparent); }
.busycard { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 220px; max-width: 320px; box-sizing: border-box; padding: 24px 28px; border-radius: var(--so-r-lg);
  background: var(--so-paper-000); border: 1px solid var(--so-stone-200); box-shadow: 0 12px 32px rgba(11, 29, 50, .18); font: 600 15px/22px var(--so-font); color: var(--so-ink-900); text-align: center; }
.spin { width: 36px; height: 36px; box-sizing: border-box; border-radius: 50%; border: 3.5px solid var(--so-stone-200); border-top-color: var(--so-gold); animation: so-spin .8s linear infinite; }
@keyframes so-spin { to { transform: rotate(360deg); } }
.viewer { padding: 0; border: 1px solid var(--so-stone-200); border-radius: var(--so-r-lg); background: var(--so-paper-000); color: var(--so-ink-900);
  max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
.viewer::backdrop { background: rgba(11, 29, 50, .6); }
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--so-stone-200);
  font: 600 14px var(--so-font); }
.vbody { display: grid; place-items: center; padding: 16px; background: var(--so-paper-100); overflow: auto; max-height: calc(100dvh - 100px); box-sizing: border-box; }
.vbody canvas, .vbody img { box-shadow: 0 0 0 1px var(--so-stone-200); background: #fff; }
.vbody img { max-width: min(1036px, calc(100vw - 80px)); max-height: calc(100dvh - 140px); }
.next { margin-top: 64px; text-align: left; }
.next h2 { margin: 0 0 12px; font: 600 15px/20px var(--so-font); color: var(--so-ink-600); text-align: center; }
.next .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .done { padding: 24px 16px 48px; }
  .done-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pager" "acts"; row-gap: 16px; }
  .done-head { text-align: center; }
  .done .tick { width: 36px; height: 36px; margin: 0 auto 10px; }
  .done .tick svg { width: 20px; height: 20px; }
  .done h1 { font-size: 22px; line-height: 28px; }
  .pg-view { height: min(48dvh, 440px); padding: 12px; }
  .pg-arrow { width: 44px; height: 44px; }
  .pg-arrow.pg-prev { left: 8px; }
  .pg-arrow.pg-next { right: 8px; }
  .next { margin-top: 40px; }
  .next .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .th canvas, .th img, .pg-view.loading-pic > * { transition: none; } .spin { animation-duration: 2.4s; } }

/* ---- r75: a landing page under the tool ----
   Above the fold stays the task (H1, one line, chips, the drop zone). Below it, written
   by the server for search: how it works, why us + limits, questions, related tools.
   Hidden once a file is picked (tools.js show), and in a language other than English. */
.not-en .en-only { display: none !important; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 0; padding: 0; max-width: 560px; }
.chips li { padding: 4px 12px; border-radius: var(--so-r-pill); border: 1px solid var(--so-stone-200); background: var(--so-paper-000);
  font: 500 13px/18px var(--so-font); color: var(--so-ink-600); }
/* the Pick screen sizes to its content so the first line of the landing block peeks above the fold */
.toolmain:has(> .land:not([hidden])) > section { flex-grow: 0; }

.land { box-sizing: border-box; width: 100%; max-width: 880px; margin: 0 auto; padding: 48px 24px 80px;
  border-top: 1px solid var(--so-stone-200); display: grid; gap: 48px; font: 400 16px/24px var(--so-font); color: var(--so-ink-900); }
.land h2 { margin: 0 0 16px; font: 700 18px/24px var(--so-font); }
.land h3 { margin: 20px 0 8px; font: 600 15px/20px var(--so-font); }
.land p { margin: 0; max-width: 640px; }
.land a { color: var(--so-navy-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.land a:focus-visible, .hub-priv a:focus-visible { outline: 2px solid var(--so-gold); outline-offset: 2px; border-radius: 2px; }

.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: st; }
.steps li::before { content: counter(st); display: block; margin-bottom: 4px; font: 700 18px/24px var(--so-font); color: var(--so-navy-700); font-variant-numeric: tabular-nums; }

.land .limits { margin-top: 16px; color: var(--so-ink-600); }
.limits b { color: var(--so-ink-900); }

.land-faq details { border-top: 1px solid var(--so-stone-200); }
.land-faq details:last-child { border-bottom: 1px solid var(--so-stone-200); }
.land-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0; box-sizing: border-box;
  list-style: none; cursor: pointer; font-weight: 600; }
.land-faq summary::-webkit-details-marker { display: none; }
.land-faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px; border: solid var(--so-ink-500); border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg); transition: transform 160ms var(--so-ease); }
.land-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.land-faq summary:focus-visible { outline: 2px solid var(--so-gold); outline-offset: 2px; border-radius: 2px; }
.land-faq details p { padding: 0 0 16px; color: var(--so-ink-600); }

.land-rel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.land-rel a { display: inline-flex; align-items: center; min-height: 44px; }

/* the hub: one line + chips under the title, a few lines on privacy under the grid */
.hub-t { flex: 1 1 auto; min-width: 0; }
.hub-intro { margin: 8px 0 0; max-width: 560px; font: 500 15px/22px var(--so-font); color: var(--so-ink-600); }
.hub-t .chips { justify-content: flex-start; margin: 12px 0 0; }
.hub-priv { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--so-stone-200); max-width: 640px; }
.hub-priv h2 { margin: 0 0 12px; font: 700 18px/24px var(--so-font); }
.hub-priv p { margin: 0 0 12px; font: 400 16px/24px var(--so-font); color: var(--so-ink-600); }

@media (max-width: 720px) {
  .land { padding: 40px 16px 64px; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
  .steps li::before { margin: 0; }
  .land-rel ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
@media (max-width: 700px) { .chips { margin-top: 12px; } }
