/* SetForward inner pages (/beta, /support, /beta-notes, legal, 404) on the taste-skill system.
   1. The old design tokens the form and status components still read, mapped onto the dealt palette,
      type and radii, so those components take the new look without changing their behaviour.
   2. The inner page frame: a head, then the body on the page's .wrap.
   3. Long text (privacy, terms): the kit resets lists and links, so prose gets its own rules. */

:root {
	--color-bg: var(--p-bg);
	--color-surface: #ffffff;
	--color-surface-muted: var(--p-surface);
	--color-line: color-mix(in oklab, var(--p-ink) 14%, transparent);
	--color-charcoal: var(--p-ink);
	--color-text: var(--p-ink);
	--color-muted: var(--p-muted);
	--color-on-primary: var(--p-action-ink);
	--color-on-primary-muted: color-mix(in oklab, var(--p-action) 12%, #ffffff);
	--color-primary: var(--p-action);
	--color-primary-soft: color-mix(in oklab, var(--p-action) 12%, #ffffff);
	--color-accent: #b26f12;
	--color-danger: #b42318;
	--color-success: #16803c;

	--radius-xs: 6px;
	--radius-sm: var(--r-sm);
	--radius-md: var(--r-md);
	--radius-lg: var(--r-lg);
	--radius-xl: var(--r-lg);
	--radius-pill: 999px;

	--space-xs: 6px; --space-sm: 10px; --space-md: 14px; --space-lg: 18px; --space-xl: 24px;
	--space-2xl: 32px; --space-3xl: 48px; --space-4xl: 64px; --space-5xl: 96px;
	--touch-target: 48px;

	--font-sans: var(--font-text);
	--font-weight-regular: 400;
	--font-weight-semibold: 500;
	--font-weight-bold: 500;
	--font-weight-extrabold: 500;
	--font-weight-black: 500;
	--text-caption: 13px;
	--text-label: 14px;
	--text-body: 16px;
	--text-hero-copy: 18px;
	--text-section: var(--t-h3);
	--text-title: var(--t-h3);
	--leading-tight: 1.2;
	--leading-body: 1.6;

	--focus-ring: 0 0 0 2px var(--p-bg), 0 0 0 4px var(--p-action);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--duration-fast: 150ms;
	--duration-base: 280ms;
}

/* 2. The page frame: the fixed nav over its top, the head, then the body */
.sf-page { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.sf-page__head { display: grid; gap: var(--s-4); max-width: 760px; margin-bottom: var(--s-8); }
.sf-page__head h1 { font-size: clamp(36px, 2.6vw + 22px, 60px); line-height: 1.05; }
.sf-page__head p { font-size: var(--t-lead); line-height: 1.55; max-width: 56ch; }
.sf-page__head p.sf-meta { font-size: var(--t-small); color: var(--muted); }
.sf-page a:not(.btn):not(.link):not(.nav__link) { color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.sf-page a:not(.btn):not(.link):not(.nav__link):hover { color: var(--ink); }
.sf-page h2 { font-size: var(--t-h3); line-height: 1.2; }

/* A split: the facts on the left, the main block (form, questions) on the right */
.sf-split { align-items: start; row-gap: var(--s-8); }
.sf-stack { display: grid; gap: var(--s-6); align-content: start; }
.sf-panel { display: grid; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.sf-panel h2 { font-size: var(--t-lead); font-weight: 500; }
.sf-dots { display: grid; gap: var(--s-3); }
.sf-dots li { position: relative; padding-left: 18px; line-height: 1.5; }
.sf-dots li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--action); }
.sf-email { font-size: var(--t-lead); font-weight: 500; }
.sf-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
@media (max-width: 639px) { .sf-actions .btn { width: 100%; } }

/* 3. Long text */
.sf-prose { max-width: 68ch; display: grid; gap: var(--s-4); line-height: 1.65; }
.sf-prose section { display: grid; gap: var(--s-4); padding-top: var(--s-6); }
.sf-prose > section:first-child { padding-top: 0; }
.sf-prose > section:first-child > h2 { margin-top: 0; }
.sf-prose h2 { margin-top: var(--s-4); }
.sf-prose h3 { font-size: var(--t-lead); font-weight: 500; margin-top: var(--s-3); }
.sf-prose ul, .sf-prose ol { display: grid; gap: var(--s-2); padding-left: 1.25em; list-style: disc; }
.sf-prose ol { list-style: decimal; }
.sf-prose strong { font-weight: 500; }
