/* Info pages: privacy, terms, refund, pay. Reading layout on top of site.css. */
.doc { max-width: calc(780px + 64px); padding-block: 48px 72px; display: flex; flex-direction: column; gap: 20px; }
.doc h1 { font-family: var(--ts-font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.5; }
.doc h2 { font-family: var(--ts-font-display); font-size: 1.2rem; line-height: 1.6; margin-block-end: 8px; }
.doc p, .doc li { line-height: 1.9; color: var(--fg); }
.doc ul { margin: 0; padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: 8px; }
.doc section { display: flex; flex-direction: column; gap: 8px; }
.doc article { display: flex; flex-direction: column; gap: 28px; }
.doc-meta { color: var(--fg-muted); font-size: var(--ts-text-small); }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--ts-text-small); }
.doc-en { border-block-start: 1px solid var(--border); padding-block-start: 32px; margin-block-start: 16px; }
.doc-en h2:first-child { font-size: 1.5rem; }
.guarantee { margin: 0; padding: 20px 24px; border-inline-start: 4px solid var(--accent); background: var(--surface); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- /pay/<token> and /receipt/<token> ---------- */
.pay-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.pay-item { font-weight: 600; }
.pay-amount { font-family: var(--ts-font-display); font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.3; }
.pay-amount small { font-size: 1rem; color: var(--fg-muted); }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pay-label { color: var(--fg-muted); font-size: var(--ts-text-small); }
.copy-btn { font: inherit; font-size: 0.85rem; border: 1.5px solid var(--border); background: transparent; color: var(--fg); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.pay-steps { margin: 0; padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: 6px; }
.pay-warn { color: var(--error); font-weight: 500; }
.pay-note { font-weight: 600; }
.pay-state { background: var(--surface); border-inline-start: 4px solid var(--accent); border-radius: 12px; padding: 16px 20px; }
.proof-form { display: flex; flex-direction: column; gap: 14px; }
.proof-form fieldset { border: 0; padding: 0; margin: 0; }
.vat-note { font-size: var(--ts-text-small); color: var(--fg-muted); }
@media print { .site-header, .site-footer, .doc-meta { display: none; } .pay-box { border: 0; } }

/* ---------- content pages (free report, FAQ, sector, guides) ---------- */
.doc ol { margin: 0; padding-inline-start: 1.5rem; display: flex; flex-direction: column; gap: 8px; }
.doc-lead { font-size: 1.1rem; line-height: 1.9; color: var(--fg); }
.cta-box { margin-block-start: 16px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--accent); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-box h2 { margin: 0; }
.guide-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.guide-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--fg); }
.guide-list a:hover, .guide-list a:focus-visible { border-color: var(--accent); }
.guide-list span { color: var(--fg-muted); font-size: var(--ts-text-small); }
.related { margin-block-start: 32px; display: flex; flex-direction: column; gap: 12px; }
.related h2 { margin: 0; font-size: 1.2rem; }

/* ---------- how-we-work story (/how-we-work): five click-to-expand steps on the blue and green line ---------- */
.story-page { gap: 40px; }
.story-promises { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px !important; }
.story-promises li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; border-inline-start: 4px solid var(--accent); line-height: 1.7; }
.story-promises li:nth-child(even) { border-inline-start-color: var(--ts-blue-400); }
.story-hint { color: var(--fg-muted); font-size: var(--ts-text-small); }
.story-steps { list-style: none; margin: 0; padding: 0 !important; position: relative; display: flex; flex-direction: column; gap: 16px !important; }
/* the line that joins the five numbers: green to blue, the two logo colours */
.story-steps::before { content: ""; position: absolute; inset-block: 28px; inset-inline-start: 25px; inline-size: 4px; border-radius: 4px; background: linear-gradient(to bottom, var(--ts-green-400), var(--ts-blue-400)); opacity: 0.7; }
.story-step details { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-inline-start: 64px; }
.story-step details[open] { border-color: var(--ts-blue-400); }
.story-step summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; min-block-size: 48px; }
.story-step summary::-webkit-details-marker { display: none; }
.story-step summary::after { content: "+"; margin-inline-start: auto; font-size: 1.5rem; line-height: 1.2; color: var(--link); transition: transform var(--t-med, 0.2s) ease; }
.story-step details[open] summary::after { transform: rotate(45deg); }
.story-step summary:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 16px; }
.story-n { position: absolute; inset-inline-start: -64px; inset-block-start: 8px; inline-size: 54px; block-size: 54px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; background: var(--night); color: var(--night-fg); border: 4px solid var(--accent); }
.story-step:nth-child(even) .story-n { border-color: var(--ts-blue-400); }
.story-t { display: flex; flex-direction: column; gap: 4px; }
.story-t h3 { margin: 0; font-family: var(--ts-font-display); font-size: 1.15rem; line-height: 1.6; }
.story-t span { color: var(--fg-muted); font-size: 0.96rem; line-height: 1.7; }
.story-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; border-block-start: 1px solid var(--border); padding-block-start: 16px; }
.story-body h4 { margin: 0; font-size: 0.95rem; color: var(--teal-text); font-weight: 600; }
/* the hand-over between roles: chips joined by a line, ending with the client */
.flow { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 10px !important; position: relative; }
.flow::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 7px; inline-size: 2px; background: linear-gradient(to bottom, var(--ts-blue-400), var(--ts-green-400)); }
.flow li { position: relative; padding-inline-start: 28px; display: flex; flex-direction: column; line-height: 1.7; }
.flow li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 6px; inline-size: 16px; block-size: 16px; border-radius: 999px; background: var(--surface); border: 3px solid var(--ts-blue-400); }
.flow li:nth-child(even)::before { border-color: var(--ts-green-400); }
.flow li strong { font-weight: 600; }
.flow li span { color: var(--fg-muted); font-size: 0.95rem; }
.flow .flow-you::before { background: var(--accent); border-color: var(--accent); }
.flow .flow-you strong { color: var(--green-text, var(--ts-green-600)); }
@media (min-width: 760px) {
  .flow { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .flow::before { inset-inline: 8px; inset-block: 13px auto; inline-size: auto; block-size: 2px; background: linear-gradient(to right, var(--ts-blue-400), var(--ts-green-400)); }
  .flow li { padding-inline-start: 0; padding-block-start: 28px; }
  .flow li::before { inset-block-start: 6px; }
}
.story-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-block: 6px; }
.story-split > div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.story-split > div:first-child { border-block-start: 3px solid var(--accent); }
.story-split > div:last-child { border-block-start: 3px solid var(--ts-blue-400); }
.story-split ul { font-size: 0.95rem; }
.story-get { font-weight: 500; }
.bring3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bring3 > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.bring3 strong { font-size: 1.05rem; }
.bring3 span { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.7; }
.story-example { background: var(--night); color: var(--night-fg); border-radius: 16px; padding: 20px 24px; border-inline-start: 4px solid var(--accent); }
.story-example h3 { margin: 0 0 6px; font-family: var(--ts-font-display); font-size: 1.1rem; }
.story-example p { color: var(--night-fg) !important; }
@media (max-width: 520px) {
  .story-steps::before { inset-inline-start: 19px; }
  .story-step details { margin-inline-start: 50px; }
  .story-n { inset-inline-start: -50px; inline-size: 42px; block-size: 42px; font-size: 1.05rem; border-width: 3px; }
  .story-step summary { padding: 14px 14px; }
  .story-body { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { .story-step summary::after { transition: none; } }
@media print { .story-step details > :not(summary) { display: block; } }
