/* Cefal website. The look of Launcher (theme Mission Control) with the blue of Cefal. */
@font-face { font-family: Inter; src: url(fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/SpaceGrotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/JetBrainsMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
	color-scheme: light;
	--bg: #F5F7FA; --glow: #FFFFFF; --panel: #FFFFFF; --panel-2: #F0F3F8; --line: #DCE3ED; --line-strong: #C3CEDD;
	--text: #0B1220; --text-2: #4A5568; --text-3: #5E6B84;
	--accent: #2E7DF6; --strong: #1D5FD0; --hover: #174EAD; --soft: #E5EEFD; --on: #FFFFFF;
	--good: #166B48; --good-soft: #E3F4EC; --warn: #8F4207; --warn-soft: #FDF1DC; --neutral: #4A5568; --neutral-soft: #EAEEF4;
	--night: #0B1220; --night-2: #1B2A4A; --night-line: transparent;
	--shadow: 0 1px 2px rgba(11,18,32,.06), 0 4px 16px rgba(11,18,32,.04); --modal: 0 24px 64px rgba(11,18,32,.22);
	--focus: 0 0 0 3px rgba(46,125,246,.55);
	--sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Space Grotesk", var(--sans); --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
	--r: 8px; --rl: 12px;
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0B1220; --glow: #1B2A4A; --panel: #111A2E; --panel-2: #16223A; --line: #24324F; --line-strong: #34466B;
	--text: #F5F7FA; --text-2: #B4BDCC; --text-3: #8B95A7;
	--strong: #6EA8FE; --hover: #94BFFF; --soft: rgba(46,125,246,.2); --on: #0B1220;
	--good: #4CD69A; --good-soft: rgba(47,182,124,.16); --warn: #F5C462; --warn-soft: rgba(242,179,61,.16); --neutral: #B4BDCC; --neutral-soft: #1D2A45;
	--night: #111A2E; --night-2: #22365F; --night-line: #24324F;
	--shadow: 0 1px 2px rgba(0,0,0,.35); --modal: 0 24px 64px rgba(0,0,0,.6);
	--focus: 0 0 0 3px rgba(110,168,254,.6);
}
:root[data-theme="contrast"] {
	color-scheme: dark;
	--bg: #000; --glow: #000; --panel: #000; --panel-2: #111A2E; --line: #8B9AB8; --line-strong: #C5CEDB;
	--text: #FFF; --text-2: #F0F3F8; --text-3: #E2E8F0;
	--strong: #94BFFF; --hover: #C9DFFF; --soft: #14264A; --on: #000;
	--good: #7BE3B5; --good-soft: #06281A; --warn: #FFD27A; --warn-soft: #2E1F00; --neutral: #FFF; --neutral-soft: #26324A;
	--night: #000; --night-2: #000; --night-line: #8B9AB8;
	--shadow: none; --modal: none; --focus: 0 0 0 3px #94BFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 400 1rem/1.55 var(--sans);
	background: radial-gradient(1200px 420px at 50% -160px, var(--glow), var(--bg)) fixed, var(--bg); }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--strong); }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus); border-radius: var(--r); }
.i { width: 1.125rem; height: 1.125rem; flex: none; fill: currentColor; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--strong); color: var(--on); padding: .6rem 1rem; border-radius: var(--r); }
.skip:focus { top: 1rem; }

/* the shell: the menu on the left, the page on the right */
.shell { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: auto; padding: 1.1rem .75rem; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; padding: .1rem .6rem .5rem; color: var(--text); text-decoration: none; }
.brand .mark { width: 2rem; height: 2rem; }
.brand .word { width: 5.1rem; height: auto; }
.mark path { stroke: currentColor; }
.word path { fill: currentColor; }
.word path:first-child { fill: none; stroke: currentColor; }
.nav-label { font: 600 .72rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 1.1rem .65rem .5rem; }
.nav a { display: flex; align-items: center; gap: .65rem; min-height: 2.5rem; padding: .4rem .65rem; margin-bottom: 2px; border-radius: var(--r); color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .94rem; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a[aria-current] { background: var(--soft); color: var(--text); font-weight: 600; }
.nav a[aria-current] .i { color: var(--strong); }
.side-end { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .75rem; }
.field { display: grid; gap: .3rem; padding: 0 .4rem; font-size: .8rem; color: var(--text-3); }
select { font: 500 .9rem var(--sans); color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r); min-height: 2.5rem; padding: 0 .6rem; width: 100%; }
.langs { display: flex; gap: .25rem; padding: 0 .4rem; }
.langs a { flex: 1; text-align: center; padding: .4rem; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-size: .85rem; font-weight: 500; }
.langs a[aria-current] { background: var(--soft); border-color: var(--strong); color: var(--text); font-weight: 600; }
.bar { display: none; }
.icon-button { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); color: var(--text); }
.close, .shade { display: none; }

.wrap { max-width: 82.5rem; margin: 0 auto; padding: 1rem 1rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
section { scroll-margin-top: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rl); box-shadow: var(--shadow); padding: 1.15rem 1.25rem 1.25rem; }
.card-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; }
.card-head h2 { font: 600 .82rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.card-head .i { color: var(--accent); }
.card-head span { margin-left: auto; font: .78rem var(--mono); color: var(--text-3); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .5rem 1.1rem; border-radius: var(--r); cursor: pointer; text-decoration: none;
	font: 600 .97rem/1.2 var(--sans); color: var(--text); background: var(--panel-2); border: 1px solid var(--line-strong); transition: background .15s, border-color .15s; }
.button:hover { border-color: var(--text-3); }
.button.primary { background: var(--strong); border-color: var(--strong); color: var(--on); }
.button.primary:hover { background: var(--hover); border-color: var(--hover); }

/* the opening: what we are, and an assistant at work */
.opening { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 1rem; min-height: min(41rem, calc(100vh - 2rem)); }
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem, 3vw, 2.75rem); border-radius: var(--rl); border: 1px solid var(--night-line); color: #F5F7FA;
	background: radial-gradient(38rem 30rem at 82% 8%, var(--night-2), var(--night)); }
.hero svg { position: absolute; right: clamp(1rem, 2.4vw, 2.25rem); top: clamp(1rem, 2.4vw, 2.25rem); width: clamp(13rem, 20vw, 18.5rem); height: auto; }
.hero path { stroke: #F5F7FA; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.9s cubic-bezier(.6,.05,.25,1) both; }
.hero circle { transform-box: fill-box; transform-origin: center; animation: idea .5s 1.75s cubic-bezier(.2,1.7,.4,1) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes idea { from { transform: scale(0); } }
.hero h1 { position: relative; font: 600 clamp(2.5rem, 4.6vw, 4.1rem)/1.02 var(--display); letter-spacing: -.03em; max-width: 10ch; }
.hero p { position: relative; margin: 1.1rem 0 1.7rem; max-width: 34em; font-size: 1.12rem; color: #C9D1DF; }
.hero .actions { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .button.primary { background: #6EA8FE; border-color: #6EA8FE; color: #0B1220; }
.hero .button.primary:hover { background: #94BFFF; border-color: #94BFFF; }
.hero .button.quiet { background: transparent; border-color: #5A6B8C; color: #F5F7FA; }
.hero .button.quiet:hover { border-color: #F5F7FA; }
.hero :focus-visible { box-shadow: 0 0 0 3px #94BFFF; }

/* ask this website */
.work { display: flex; flex-direction: column; min-height: 0; }
.work:not(.live) .talk, .work:not(.live) form, .work:not(.live) .foot, .work:not(.live) > .kefi { display: none; }
.talk { flex: 1 1 0; min-height: 0; overflow: auto; margin: .9rem -.4rem; padding: .4rem; display: flex; flex-direction: column; gap: .7rem; }
.starts { display: grid; gap: .6rem; margin: auto 0; }
.starts[hidden], .ask[hidden], .own[hidden] { display: none; }
.own { display: grid; gap: .75rem; margin: auto 0; text-align: center; }
.own h3 { font-size: 1.25rem; }
.own p { color: var(--text-2); margin-bottom: .4rem; }
.own .button { justify-content: center; }
.own .way { display: grid; gap: .4rem; }
.own .way small { color: var(--text-2); font-size: .88rem; line-height: 1.45; text-wrap: pretty; }
.own .way + .way { margin-top: .35rem; }
.starts button { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 3.25rem; padding: .6rem .9rem; text-align: left; font: 500 .97rem/1.4 var(--sans); color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--rl); cursor: pointer; }
.starts button:hover { border-color: var(--strong); background: var(--soft); }
.starts .i { color: var(--strong); }
.talk > p { max-width: 88%; padding: .65rem .9rem; border-radius: var(--rl); overflow-wrap: anywhere; animation: rise .25s ease-out both; }
.talk .you { align-self: flex-end; background: var(--strong); color: var(--on); border-bottom-right-radius: 3px; }
.talk .site { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 3px; }
.talk .thinking { color: var(--text-2); }
.talk .quiet { background: none; padding: 0 .2rem; font-size: .85rem; color: var(--text-3); }
.found { display: flex; flex-wrap: wrap; gap: .5rem; animation: rise .25s ease-out both; }
.found .button { background: var(--panel); }
.found .button .i { color: var(--strong); }
.found .button.primary { background: var(--strong); }
.found .button.primary .i { color: inherit; }
.draft { display: grid; gap: .6rem; padding: .9rem 1rem; border: 1px solid var(--strong); border-radius: var(--rl); animation: rise .25s ease-out both; }
.draft label { font-weight: 600; }
.draft .row { display: flex; flex-wrap: wrap; gap: .5rem; }
textarea, .ask input { font: 400 1rem/1.5 var(--sans); color: var(--text); background: var(--panel); border: 1px solid var(--text-3); border-radius: var(--r); padding: .6rem .8rem; width: 100%; }
textarea { resize: vertical; }
.ask { display: flex; gap: .5rem; }
.ask input { flex: 1; min-width: 0; min-height: 2.75rem; }
.ask input::placeholder { color: var(--text-3); opacity: 1; }
.ask .button { flex: none; }
.ask .button:disabled { opacity: .55; cursor: wait; }
.foot { margin-top: .75rem; font-size: .85rem; color: var(--text-3); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.hit { animation: hit 2.6s ease-out; }
@keyframes hit { 0%, 60% { border-color: var(--strong); background: var(--soft); box-shadow: var(--focus); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* what we do */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.tiles li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .2rem .9rem; align-content: start; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--rl); }
.badge { grid-row: span 2; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--strong); }
.badge .i { width: 1.35rem; height: 1.35rem; }
h3 { font: 600 1.08rem/1.35 var(--display); }
.tiles p, .steps p, .sure p { color: var(--text-2); font-size: .97rem; }

.pair { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 1rem; }
#process { display: flex; flex-direction: column; }
.steps { flex: 1; display: grid; grid-template-rows: 1fr 1fr 1fr auto; }
.steps li { align-content: start; position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0 1rem; padding-bottom: 1.35rem; }
.steps li:last-child { padding-bottom: 0; }
.steps i { grid-row: span 2; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; font: 600 .95rem var(--display); background: var(--panel); border: 2px solid var(--strong); color: var(--strong); }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.25rem; bottom: 0; width: 2px; background: var(--line-strong); }
.steps li:last-child i { background: var(--strong); color: var(--on); }
.sure li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0 .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.sure li:first-child { padding-top: 0; }
.sure li:last-child { border: 0; padding-bottom: 0; }
.sure .i { grid-row: span 2; width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: var(--strong); }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact h2 { font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--display); letter-spacing: -.02em; }
.contact p { margin-top: .5rem; color: var(--text-2); }
/* the top of the page, like the head of a panel: where you are and the main action */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem max(1rem, calc((100% - 80.5rem) / 2)); background: var(--bg); border-bottom: 1px solid var(--line); }
.wrap > section, .pair > section { scroll-margin-top: 5.5rem; }
.top p { display: grid; min-width: 0; }
.top strong { font: 600 1.35rem/1.2 var(--display); letter-spacing: -.01em; color: var(--text); }
.top span { font-size: .88rem; color: var(--text-3); }
.top-actions { display: flex; flex: none; gap: .6rem; }
/* client access: in the head of the page, and in the menu on small screens */
.client { display: none; align-items: center; gap: .65rem; min-height: 2.5rem; padding: .4rem .65rem; margin: 0 .4rem; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--text); text-decoration: none; font-weight: 500; font-size: .94rem; }
.client:hover { border-color: var(--strong); background: var(--soft); }
.client .i { color: var(--strong); }

/* a light on the panel: the state of the AI of the browser */
.card-head .state { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; font: .78rem var(--mono); color: var(--text-3); }
.card-head .state[hidden] { display: none; }
.card-head .state i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--text-3); }
.card-head .state.on i { background: var(--accent); box-shadow: 0 0 0 3px var(--soft); animation: beat 2.4s ease-in-out infinite; }
.card-head .state.wait i { background: var(--warn); }
@keyframes beat { 50% { box-shadow: 0 0 0 5px transparent; } }

/* the footer stays on screen, all in one line, with Europe in the middle */
main > footer { position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: .45rem 1.25rem; font-size: .85rem; line-height: 1.3; color: var(--text-3); background: var(--panel); border-top: 1px solid var(--line); }
main > footer > span:last-child { text-align: right; }
main > footer .owner { display: flex; align-items: center; gap: .55rem; min-width: 0; color: var(--text-2); font-weight: 500; }
main > footer .mark { width: 1.35rem; height: 1.35rem; flex: none; color: var(--text); }
.eu { display: block; line-height: 0; border-radius: 4px; }
.eu img { display: block; width: 3.5rem; height: auto; border-radius: 4px; }

@media (max-width: 72rem) {
	.opening, .pair { grid-template-columns: minmax(0, 1fr); }
	.hero { min-height: 30rem; }
	.steps { grid-template-rows: none; }
	.talk { flex: none; max-height: 30rem; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 54rem) {
	.shell { grid-template-columns: minmax(0, 1fr); }
	.bar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; padding: .5rem 1rem; background: var(--panel); border-bottom: 1px solid var(--line); }
	.bar .brand { padding: 0; }
	section { scroll-margin-top: 4.75rem; }
	.side { position: fixed; z-index: 40; inset: 0 auto 0 0; height: auto; width: min(19rem, 86vw); visibility: hidden; transform: translateX(-100%); box-shadow: var(--modal); transition: transform .2s ease-out, visibility 0s .2s; }
	.open .side { visibility: visible; transform: none; transition: transform .2s ease-out; }
	.side-top { display: flex; justify-content: space-between; align-items: center; }
	.close { display: inline-grid; }
	.top { display: none; }
	.client { display: flex; }
	.open .shade { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(3,6,12,.6); }
}
@media (max-width: 40rem) {
	main > footer { gap: .6rem; padding: .4rem 1rem; font-size: .78rem; white-space: nowrap; }
	main > footer > span:last-child, .owner > span { overflow: hidden; text-overflow: ellipsis; }
	.tiles { grid-template-columns: minmax(0, 1fr); }
	.tiles li { padding: 1rem; }
	.hero { min-height: 0; justify-content: flex-start; padding: 1.25rem 1.5rem 1.5rem; }
	.hero svg { position: static; width: 10rem; margin: 0 0 1.5rem -.6rem; }
	.contact .button { flex: 1 1 8rem; }
}
@media (max-width: 30rem) { main > footer > span:last-child { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } }

/* Kefi, the mascot: he keeps people company; the text always says what happens */
.hero .tentacle { position: absolute; right: 0; bottom: 0; width: min(80%, 30rem); height: auto; opacity: .22; pointer-events: none; }
.work > .kefi { display: block; width: 8.5rem; height: auto; margin: .25rem auto -.5rem; transition: width .25s ease-out; }
.work.talking > .kefi { width: 4.5rem; margin-bottom: -.75rem; }
/* before the conversation Kefi and what he offers sit together in the middle */
.work:not(.talking) > .kefi { margin-top: auto; }
.work:not(.talking) .talk { flex: none; margin-bottom: auto; }
.contact { position: relative; }
.contact .kefi { width: 8.25rem; height: auto; margin: -1rem 0 -1rem -.75rem; }
.contact > div { flex: 1 1 18rem; }
/* high contrast: the tentacle as a white line; Kefi is his picture in the light blue of the theme (theme.js) */
[data-theme="contrast"] .tentacle { content: url(/img/kefi/tentacle-line.svg); opacity: .22; } /* faint: the text of the hero runs over it */
@media (max-width: 40rem) { .contact .kefi { width: 6rem; } .hero .tentacle { width: 52%; opacity: .16; } }

/* Forced colours (Windows contrast themes): the system paints the page; keep what colour alone was saying */
@media (forced-colors: active) {
	.tentacle { display: none; }
	.card, .talk p, .save { border: 1px solid CanvasText; }
	.talk .you { border-color: Highlight; }
	.steps li:last-child i { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
	.steps li:not(:last-child)::before { background: CanvasText; }
	.card-head .state i { forced-color-adjust: none; background: GrayText; box-shadow: none; animation: none; }
	.card-head .state.on i { background: Highlight; }
	.card-head .state.wait i { background: CanvasText; }
	:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* Services and prices */
.online h1 { font: 600 clamp(1.9rem, 3.4vw, 2.8rem)/1.1 var(--display); letter-spacing: -.02em; }
.online .lead { margin: .7rem 0 1.4rem; max-width: 40em; color: var(--text-2); font-size: 1.05rem; }
.offers { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .9rem; }
.offer { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .35rem .9rem; align-content: start; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--rl); scroll-margin-top: 5rem; }
.offer h2 { font: 600 1.25rem/1.2 var(--display); align-self: center; }
.offer > p, .offer .points, .offer .price, .offer .button { grid-column: 1 / -1; }
.offer > p { color: var(--text-2); }
.points { list-style: none; display: grid; gap: .35rem; margin: .5rem 0; }
.points li { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; }
.points .i { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .2rem; color: var(--strong); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin: .3rem 0 .6rem; }
.price strong { font: 600 1.6rem/1.1 var(--display); color: var(--text); }
.price span { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-2); font-size: .92rem; }
.price .i { width: 1rem; height: 1rem; }
.offer .button { justify-self: start; }
