/* Quiet Plugins - shared styles. Font is self-hosted (see fonts/OFL.txt), nothing loads from other sites.
   Palette "Fjord": white, cobalt blue, sunny yellow. Light only, on purpose. */

@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/schibsted-grotesk.woff2") format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: italic; font-weight: 400 600; font-display: swap; src: url("fonts/schibsted-grotesk-italic.woff2") format('woff2'); }

:root {
	--bg: #ffffff;
	--band: #eaf1ff;
	--ink: #12203d;
	--ink-2: #4a5675;
	--line: #dde3ef;
	--accent: #2457d6;
	--accent-dark: #1a43ab;
	--pop: #ffc83d;
	--font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 6px; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.page { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.col { max-width: 680px; }
.lede { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.quiet { color: var(--ink-2); }
.small { font-size: .92rem; }
/* Small supporting text: same font, a touch smaller and medium weight. */
.meta { font-size: .9rem; font-weight: 500; color: var(--ink-2); letter-spacing: .005em; }

/* masthead */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead .page { display: flex; align-items: center; gap: 12px 28px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand small { font-size: .88rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.masthead nav { display: flex; gap: 22px; margin-left: auto; font-size: .97rem; font-weight: 500; flex-wrap: wrap; }
.masthead nav a { text-decoration: none; color: var(--ink-2); }
.masthead nav a:hover { color: var(--accent); }
@media (max-width: 600px) { .masthead nav { gap: 16px; margin-left: 0; } .masthead nav .opt { display: none; } }

/* buttons */
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 8px; font-weight: 600; line-height: 1.2; }
.button:hover { background: var(--accent-dark); color: #fff; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.button.ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; }
.tag { display: inline-block; background: var(--pop); color: var(--ink); font-size: .82rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; margin-bottom: 16px; text-decoration: none; }

/* hero */
.hero { padding-block: 64px 64px; }
.hero .page { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .meta { margin-top: 18px; }
@media (max-width: 880px) { .hero .page { grid-template-columns: 1fr; gap: 36px; } .hero { padding-block: 44px 52px; } }

/* sections */
.section { padding-block: 64px; }
.band { background: var(--band); }
.section + .section:not(.band) { border-top: 1px solid var(--line); }
.band + .section, .section + .band { border-top: 0; }

/* three-up columns */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 820px) { .cols-3 { grid-template-columns: 1fr; gap: 24px; } }
.cols-3 p { margin: 0; color: var(--ink-2); }
.num { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 10px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* plain tables */
.table-wrap { overflow-x: auto; margin: 8px 0 14px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.plain th, table.plain td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain thead th { font-size: .88rem; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
table.plain td.c, table.plain th.c { text-align: center; padding-right: 0; width: 84px; }
.yes { color: var(--accent); font-weight: 700; }
.no { color: var(--ink-2); }
.later { display: inline-block; background: var(--pop); color: var(--ink); font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }

/* log */
dl.log { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 20px; }
dl.log dt { padding-top: 1px; font-variant-numeric: tabular-nums; }
dl.log dd { margin: 0; }
@media (max-width: 560px) { dl.log { grid-template-columns: 1fr; gap: 2px; } dl.log dd { margin-bottom: 14px; } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 17px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--ink-2); margin: -4px 0 18px; max-width: 620px; }

/* footer */
.colophon { background: var(--ink); color: #fff; padding-block: 28px 34px; font-size: .95rem; }
.colophon .page { display: flex; gap: 10px 26px; flex-wrap: wrap; align-items: center; }
.colophon a { color: #fff; text-decoration-color: var(--pop); }
.colophon a:hover { color: var(--pop); }
.colophon .sig { font-weight: 700; }
.colophon .made { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #c9d3ea; }
.flag { width: 21px; height: 14px; border-radius: 2px; background: #006aa7; position: relative; overflow: hidden; flex-shrink: 0; }
.flag::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 3px; background: #fecc00; }
.flag::after { content: ""; position: absolute; top: 5.5px; left: 0; right: 0; height: 3px; background: #fecc00; }

/* inline moon logo, so its parts can move */
.moon { width: 34px; height: 34px; flex-shrink: 0; overflow: visible; }
.moon .crescent, .moon .dot { transform-box: fill-box; transform-origin: center; }

/* ---------- motion. Everything is visible without it; it only plays when the visitor hasn't asked for less motion. ---------- */
@media (prefers-reduced-motion: no-preference) {
	@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
	@keyframes twinkle { 0%, 82%, 100% { transform: scale(1); opacity: 1; } 88% { transform: scale(1.7); opacity: .65; } 94% { transform: scale(.8); opacity: 1; } }
	@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 7%) scale(1.06); } }
	@keyframes drift-b { from { transform: translate(0, 0); } to { transform: translate(14%, -9%); } }
	@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
	@keyframes nudge { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-5deg); } 96% { transform: rotate(4deg); } }
	@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(7deg); } }

	html { scroll-behavior: smooth; }

	.moon .dot { animation: twinkle 5s ease-in-out 1.2s infinite; }
	.moon .crescent { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
	.brand:hover .moon .crescent { transform: rotate(-24deg); }
	.brand:hover img.lh { animation: wiggle .5s ease-in-out; }

	.hero .intro > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
	.hero .intro > :nth-child(2) { animation-delay: .08s; }
	.hero .intro > :nth-child(3) { animation-delay: .16s; }
	.hero .intro > :nth-child(4) { animation-delay: .24s; }
	.hero .intro > :nth-child(5) { animation-delay: .32s; }
	.hero .intro > .tag { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both, nudge 6s ease-in-out 2s infinite; }

	.button { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; }
	.button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(36, 87, 214, .25); }
	.button.ghost:hover { box-shadow: inset 0 0 0 2px var(--accent), 0 8px 18px rgba(36, 87, 214, .12); }

	/* FAQ answers slide open (browsers without ::details-content just open instantly). */
	.faq details { interpolate-size: allow-keywords; }
	.faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .35s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, content-visibility .35s allow-discrete; }
	.faq details[open]::details-content { block-size: auto; opacity: 1; }
	.faq summary::after { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
	.faq summary { transition: color .15s ease; }
}

/* FAQ toggle: a plus that turns into a cross when open. */
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; font-weight: 500; color: var(--accent); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }

/* Fade-in on scroll. Only hidden when motion.js is running (html.motion is set in the page head). */
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.in .stagger > * { opacity: 1; transform: none; }
.motion .reveal.in .stagger > :nth-child(1) { transition-delay: .15s; }
.motion .reveal.in .stagger > :nth-child(2) { transition-delay: .25s; }
.motion .reveal.in .stagger > :nth-child(3) { transition-delay: .35s; }
.motion .reveal.in .stagger > :nth-child(4) { transition-delay: .45s; }
.motion .reveal.in .stagger > :nth-child(5) { transition-delay: .55s; }
.motion .reveal.in .stagger > :nth-child(6) { transition-delay: .65s; }
.motion .reveal.in .stagger > :nth-child(7) { transition-delay: .75s; }
