/* Site of Inbox: Montserrat, plum accent of the application, light sections and dark bands, theme of the system */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-v26-latin-regular.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-v26-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-v26-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-v26-latin-700.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-v26-latin-800.woff2) format('woff2'); }

:root {
	--accent: #8a2b6e;
	--accent-2: #b8407f;
	--accent-soft: #f6e8f1;
	--glow-a: #c2459a;
	--glow-b: #6d3bd1;
	--bg: #ffffff;
	--bg-tint: #faf6f9;
	--ink: #1d1420;
	--ink-2: #5c5162;
	--line: #ece4ea;
	--card: #ffffff;
	--dark: #140a12;
	--dark-2: #1f1220;
	--on-dark: #f6eef4;
	--on-dark-2: #c7b7c3;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(29, 20, 32, .06), 0 12px 32px -12px rgba(29, 20, 32, .18);
	--shadow-big: 0 40px 80px -30px rgba(20, 10, 18, .55), 0 18px 36px -18px rgba(20, 10, 18, .35);
	--topbar-h: 68px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--accent: #d36aa9;
		--accent-2: #e58cc0;
		--accent-soft: #34172b;
		--bg: #120a11;
		--bg-tint: #180e17;
		--ink: #f3eaf0;
		--ink-2: #b9a9b5;
		--line: #2c1d29;
		--card: #1b111a;
		--dark: #0b0509;
		--dark-2: #170c15;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 'Montserrat', system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.center { text-align: center; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.35em; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--glow-a); outline-offset: 3px; }
.btn-icon { width: 1.15em; height: 1.15em; }
.btn-primary { background: linear-gradient(135deg, var(--glow-a), var(--accent) 55%, #5d1d4a); color: #fff; box-shadow: 0 10px 24px -10px rgba(138, 43, 110, .8); }
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(138, 43, 110, .9); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: #1d1420; }
.btn-big { padding: 1em 1.6em; font-size: 1rem; }
.btn-sm { padding: .55em 1.05em; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--dark) 93%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--on-dark); }
.topbar-in { display: flex; align-items: center; gap: 22px; height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.brand small { white-space: nowrap; font-weight: 500; font-size: .72rem; color: var(--on-dark-2); letter-spacing: 0; margin-top: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 8px 11px; border-radius: 10px; color: var(--on-dark-2); transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.langs { display: flex; gap: 2px; }
.langs a { text-decoration: none; font-size: .72rem; font-weight: 700; padding: 5px 6px; border-radius: 6px; color: var(--on-dark-2); }
.langs a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--glow-a); }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn .icon { width: 26px; height: 26px; }
@media (max-width: 1380px) {
	.nav { position: fixed; inset: var(--topbar-h) 0 auto 0; flex-direction: column; background: var(--dark); padding: 12px 20px 20px; display: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.nav.is-open { display: flex; }
	.nav a { font-size: 1rem; padding: 12px; }
	.menu-btn { display: block; }
	.langs { margin-left: auto; }
}
@media (max-width: 640px) { .topbar .langs, .topbar-cta { display: none; } .brand small { display: none; } }

/* ------------------------------------------------ hero */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(70px, 9vw, 130px); margin-top: calc(-1 * var(--topbar-h)); padding-top: calc(var(--topbar-h) + clamp(48px, 7vw, 96px)); }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 120%; background: radial-gradient(35% 40% at 62% 45%, rgba(194, 69, 154, .28), transparent 70%), radial-gradient(30% 35% at 15% 10%, rgba(109, 59, 209, .22), transparent 70%); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero .kicker, .section-dark .kicker, .story .kicker { color: #f0a6d4; }
.kicker-icon { width: 16px; height: 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ff9fd6, #c86bff 60%, #ff9fd6); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 62ch; margin-top: 18px; }
.hero .lead, .section-dark .lead, .story .lead { color: var(--on-dark-2); }
.hero .actions { margin-top: 32px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); }
.hero .btn-ghost:hover { border-color: #f0a6d4; color: #f0a6d4; }
.hint { margin-top: 16px; font-size: .82rem; color: var(--on-dark-2); }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
/* Chips of the hero: links to the part of the page that tells more (the card reached lights up, below) */
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; font-size: .8rem; font-weight: 600; padding: 6px 10px 6px 12px; border-radius: 999px; color: inherit; text-decoration: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, border-color .2s; }
.chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(240, 166, 212, .5); }
.chip:focus-visible { outline: 2px solid #f0a6d4; outline-offset: 2px; }
.chip-icon { width: 14px; height: 14px; color: #f0a6d4; }
.chip-go { width: 13px; height: 13px; opacity: .55; transform: rotate(90deg); transition: transform .2s, opacity .2s; }
.chip:hover .chip-go { opacity: 1; transform: rotate(90deg) translateX(2px); }
.hero-visual { position: relative; perspective: 1600px; }
.frame-hero { transform: rotateY(-9deg) rotateX(4deg) translateZ(0); transform-origin: left center; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.hero-visual:hover .frame-hero { transform: rotateY(-4deg) rotateX(2deg); }
.phone-hero { position: absolute; width: 27%; right: -3%; bottom: -14%; transform: rotate(4deg); animation: float 7s ease-in-out infinite; }
/* Note left by Camille for her colleagues, floating under the screenshot */
.hero-note { position: absolute; left: 30%; bottom: -16%; width: min(360px, 52%); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .96); color: #1d1420; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .5); z-index: 2; animation: float3 8s ease-in-out infinite; backdrop-filter: blur(8px); }
.hero-note img { width: 42px; height: 42px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f0a6d4; }
.note-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .82rem; }
.note-head span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8a2b6e; background: #f6e8f1; padding: 2px 7px; border-radius: 6px; }
.note-text { margin-top: 5px; font-size: .84rem; line-height: 1.45; color: #3a2e3d; }
.note-text mark { background: none; color: #8a2b6e; font-weight: 700; }
.note-when { margin-top: 4px; font-size: .7rem; color: #8b7e88; }
@keyframes float3 { 50% { transform: translateY(-8px); } }
@keyframes float { 50% { transform: rotate(4deg) translateY(-12px); } }
@media (max-width: 900px) {
	.hero-in { grid-template-columns: 1fr; }
	.frame-hero { transform: none; }
	.phone-hero { width: 34%; right: -2%; bottom: -10%; }
	.hero-note { left: 4%; bottom: -22%; width: min(320px, 62%); }
	.hero-in { padding-bottom: 60px; }
}

/* ------------------------------------------------ frames (window, phone) */
.frame { margin: 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow-big), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #f3eef2; border-bottom: 1px solid #e6dde4; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin: 0 auto; font-size: .7rem; color: #8b7e88; background: #fff; padding: 3px 14px; border-radius: 6px; transform: translateX(-24px); }
.frame-zoom { display: block; position: relative; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 10, 18, .75); color: #fff; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.frame-zoom:hover .zoom-hint, .frame-zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
.frame figcaption { padding: 12px 16px; font-size: .85rem; font-weight: 600; background: var(--card); color: var(--ink); border-top: 1px solid var(--line); }
.phone { margin: 0; padding: 9px; border-radius: 38px; background: linear-gradient(145deg, #2c2030, #0e080d); box-shadow: var(--shadow-big), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.phone img { border-radius: 30px; }
.phone .frame-zoom { border-radius: 30px; overflow: hidden; }

/* ------------------------------------------------ story slider */
.story { background: linear-gradient(180deg, var(--dark), var(--dark-2)); color: var(--on-dark); padding: clamp(70px, 8vw, 110px) 0 40px; position: relative; overflow: hidden; }
.story-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; }
.story-head .kicker, .story-head h2, .story-head .lead { grid-column: 1; }
.summary { grid-column: 2; grid-row: 1 / span 3; list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.summary button { width: 100%; display: flex; gap: 14px; align-items: baseline; text-align: left; background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark-2); font: inherit; font-size: .92rem; font-weight: 600; padding: 12px 4px; cursor: pointer; transition: color .2s; }
.summary button:hover, .summary button.is-active { color: #fff; }
.summary b { color: #f0a6d4; font-size: .78rem; }
.slider { margin-top: 48px; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 10px max(20px, (100% - 1240px) / 2) 30px; }
.slide-num { display: block; font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 800; line-height: 1; background: linear-gradient(180deg, rgba(240, 166, 212, .9), rgba(240, 166, 212, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.slide h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; }
.slide p { margin-top: 16px; color: var(--on-dark-2); font-size: 1.05rem; }
.slide-text, .slide-visual { transition: opacity .6s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.slide:not(.is-active) .slide-text { opacity: .2; transform: translateX(-30px); }
.slide:not(.is-active) .slide-visual { opacity: .3; transform: scale(.94); }
.slider-bar { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.segs { flex: 1; display: flex; gap: 8px; }
.seg { flex: 1; height: 28px; background: none; border: 0; padding: 12px 0; cursor: pointer; }
.seg span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; position: relative; }
.seg span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--glow-a), #f0a6d4); transform: scaleX(0); transform-origin: left; }
.seg.is-done span::after { transform: none; }
.seg[aria-current] span::after { animation: fill var(--slide-time, 7s) linear forwards; }
.slider.is-paused .seg[aria-current] span::after, .slider.is-still .seg[aria-current] span::after { animation: none; transform: none; }
@keyframes fill { to { transform: none; } }
.arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .2s, opacity .2s; }
.arrow:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.arrow:disabled { opacity: .3; cursor: default; }
@media (max-width: 900px) {
	.story-head { grid-template-columns: 1fr; }
	.summary { grid-column: 1; grid-row: auto; }
	.slide { grid-template-columns: 1fr; }
	.slide-num { font-size: 3.4rem; }
}

/* ------------------------------------------------ sections */
.section { padding: clamp(80px, 9vw, 130px) 0; position: relative; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--dark); color: var(--on-dark); overflow: hidden; }
.dark-glow { position: absolute; width: 60vw; height: 60vw; left: -20vw; top: -20vw; background: radial-gradient(closest-side, rgba(194, 69, 154, .28), transparent); pointer-events: none; }
.dark-glow.is-right { left: auto; right: -20vw; background: radial-gradient(closest-side, rgba(109, 59, 209, .28), transparent); }
.head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); position: relative; }
.wrap.head { margin-inline: auto; }

/* features bento */
.bento { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card.has-crop, .card:last-child:not(.has-crop) { grid-column: span 3; }
.card:target { border-color: var(--accent); animation: card-reached 1.8s ease-out; }
@keyframes card-reached { 0%, 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); } 100% { box-shadow: var(--shadow); } }
.card p { color: var(--ink-2); font-size: .95rem; }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.card-icon .icon { width: 24px; height: 24px; }
.card-crop { margin: 14px -26px -26px; padding: 18px 0 0 18px; background: linear-gradient(160deg, var(--accent-soft), transparent 80%); flex: 1; display: flex; align-items: flex-end; }
.card-crop img { border-radius: 12px 0 0 0; box-shadow: var(--shadow); border: 1px solid var(--line); border-right: 0; border-bottom: 0; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .card, .card.has-crop { grid-column: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } }
.more { margin-top: 44px; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line); }
.more h3 { margin-bottom: 14px; }
.more ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 24px; }
.more li { display: flex; gap: 10px; align-items: center; font-size: .93rem; color: var(--ink-2); }
.li-icon { width: 18px; height: 18px; color: var(--accent); }

/* security */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.sec-list li { display: flex; gap: 16px; }
.sec-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(240, 166, 212, .1); color: #f0a6d4; border: 1px solid rgba(240, 166, 212, .2); }
.sec-list p { color: var(--on-dark-2); font-size: .94rem; margin-top: 4px; }
.sec-visual { position: relative; }
.sec-crop { position: absolute; left: -8%; bottom: -12%; width: 72%; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); animation: float2 8s ease-in-out infinite; }
@keyframes float2 { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } .sec-crop { position: static; width: 100%; margin-top: 18px; animation: none; } }

/* gallery */
.gallery { position: relative; }
.gal-track { list-style: none; margin: 0; padding: 10px max(20px, (100% - 1240px) / 2) 30px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-item { flex: 0 0 min(560px, 80vw); scroll-snap-align: start; scroll-margin-left: max(20px, (100% - 1240px) / 2); }
.frame-small .frame-bar { height: 26px; }
.frame-small .frame-bar i { width: 9px; height: 9px; }
.frame-small .frame-bar span { display: none; }
.frame-small { box-shadow: var(--shadow); border: 1px solid var(--line); }
.gal-nav { display: flex; justify-content: flex-end; gap: 10px; }
.gal-nav .arrow { background: var(--card); color: var(--ink); border-color: var(--line); }

/* mobile */
.mobile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mobile-phones { display: flex; justify-content: center; gap: 0; position: relative; min-height: 520px; }
.mobile-phones .phone { width: min(280px, 44%); }
.phone-a { transform: rotate(-6deg) translateX(18px); z-index: 1; }
.phone-b { transform: rotate(5deg) translate(-18px, 40px); }
@media (max-width: 900px) { .mobile-grid { grid-template-columns: 1fr; } .mobile-phones { min-height: 0; } }

/* open source */
.os-grid { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.os-grid li { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.os-icon { width: 30px; height: 30px; color: #f0a6d4; margin-bottom: 14px; }
.os-grid p { color: var(--on-dark-2); font-size: .93rem; margin-top: 8px; }
@media (max-width: 1000px) { .os-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .os-grid { grid-template-columns: 1fr; } }

/* install */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--glow-a), var(--accent)); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step p { color: var(--ink-2); font-size: .93rem; margin-top: 8px; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 48px; right: -18px; width: 18px; height: 2px; background: var(--line); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.req { display: flex; gap: 14px; align-items: flex-start; margin: 30px 0 40px; padding: 18px 22px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: .93rem; }
.req-icon { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }

/* services */
.svc-grid { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.svc { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.svc-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.svc p { color: var(--ink-2); font-size: .93rem; margin-top: 8px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa-chev { width: 20px; height: 20px; color: var(--accent); transition: transform .25s; }
.qa[open] .qa-chev { transform: rotate(90deg); }
.qa-a { padding: 0 0 22px; color: var(--ink-2); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }

/* final */
.final { position: relative; background: var(--dark); color: var(--on-dark); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; text-align: center; }
.final-glow { position: absolute; inset: 0; background: radial-gradient(45% 60% at 50% 100%, rgba(194, 69, 154, .45), transparent 70%), radial-gradient(30% 40% at 20% 0%, rgba(109, 59, 209, .3), transparent 70%); }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-in img { border-radius: 18px; margin-bottom: 26px; box-shadow: 0 20px 50px -10px rgba(194, 69, 154, .7); }
.final .lead { margin-inline: auto; color: var(--on-dark-2); }
.final .actions { margin-top: 34px; }

/* footer */
.footer { background: #0b0509; color: #b9a9b5; padding: 34px 0 26px; font-size: .86rem; }
.footer-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.footer-brand img { border-radius: 7px; }
.footer a { color: #f0d7e7; }
.footer-ed { flex: 1; }
.footer .langs a { color: #b9a9b5; }
/* Newsletter band of the home page, between the dark open source section and the install one */
.news-band { background: var(--accent-soft); padding: 36px 0; }
.news-in { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.news-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); color: var(--accent); flex: none; }
.news-icon .icon { width: 26px; height: 26px; }
.news-text { flex: 1; min-width: 260px; }
.news-text h2 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-bottom: 4px; }
.news-text p { color: var(--ink-2); }
.footer-news { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.footer-news-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #f0d7e7; flex: none; }
.footer-news-icon .icon { width: 22px; height: 22px; }
.footer-news-text { flex: 1; min-width: 240px; }
.footer-news-title { color: #fff; font-weight: 700; font-size: .98rem; margin-bottom: 2px; }
.footer .footer-news .btn-primary { color: #fff; }
.footer-demo { margin-top: 18px; font-size: .76rem; color: #7d6d79; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(11, 5, 9, .86); backdrop-filter: blur(6px); }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-big); }
.lightbox-nav { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox-nav[hidden], .lightbox-count[hidden] { display: none; }
.lightbox-nav:hover, .lightbox-x:hover { background: rgba(255, 255, 255, .24); }
.lightbox-nav:focus-visible, .lightbox-x:focus-visible { outline: 2px solid #f0a6d4; outline-offset: 2px; }
.lightbox.has-nav img { max-width: calc(100vw - 160px); max-height: calc(100vh - 64px); }
/* The page does not scroll behind an open lightbox (the scroll bar keeps its room: no jump of the page) */
html { scrollbar-gutter: stable; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox { overscroll-behavior: contain; }
/* Quick clicks on the arrows are no double click that selects the picture */
.lightbox, .lightbox * { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.lightbox img { -webkit-user-drag: none; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav svg { width: 26px; height: 26px; }
.lightbox-count { position: fixed; bottom: 14px; left: 50%; translate: -50% 0; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Phone: the arrows at the bottom, beside the count, off the picture */
@media (max-width: 720px) {
	.lightbox-nav { top: auto; bottom: 8px; translate: none; width: 46px; height: 46px; }
	.lightbox-count { bottom: 20px; }
	.lightbox img, .lightbox.has-nav img { max-width: 96vw; max-height: calc(92vh - 64px); }
}
.lightbox-x { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .8s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].is-in, .no-js [data-reveal] { opacity: 1; transform: none; }
/* Reached by a link before it showed: the scroll counts its offset of 26px, given back here */
[data-reveal]:not(.is-in) { scroll-margin-top: 26px; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* Phone: the note goes under the screenshot (after the 900 px rules of the hero) */
@media (max-width: 640px) {
	.hero-note { position: relative; left: auto; bottom: auto; width: 88%; margin: -28px auto 0; padding: 11px 13px; animation: none; }
	.hero-note img { width: 34px; height: 34px; }
	.note-text { font-size: .8rem; }
	.hero-in { padding-bottom: 0; }
}

/* ------------------------------------------------ cherry blossoms: background picture and falling petals */
.bg-blossom { position: absolute; inset: 0; pointer-events: none; background: url(../img/bg-hero-cerisiers-1920.webp) right top / cover no-repeat; }
/* Full width, faded in from the left by a mask: no edge where the picture starts */
.hero .bg-blossom { inset: 0; background-position: right top; mask-image: linear-gradient(90deg, transparent 18%, rgba(0, 0, 0, .55) 42%, #000 68%); -webkit-mask-image: linear-gradient(90deg, transparent 18%, rgba(0, 0, 0, .55) 42%, #000 68%); }
.hero .bg-blossom::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--dark) 0%, transparent 25%), linear-gradient(180deg, rgba(20, 10, 18, .6) 0%, transparent 18%); }
.bg-blossom.is-band { opacity: .34; background-size: cover; background-position: right center; mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 68%); -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 68%); }
.bg-blossom.is-flip { transform: scaleX(-1); }
.bg-blossom.is-final { opacity: .55; transform: scaleY(-1); background-position: center top; mask-image: radial-gradient(80% 90% at 50% 0%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000 30%, transparent 80%); }
@media (max-width: 900px) { .bg-blossom { background-image: url(../img/bg-hero-cerisiers-960.webp); } .hero .bg-blossom { inset: 0; opacity: .32; background-position: 70% top; mask-image: none; -webkit-mask-image: none; } }
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.petal { position: absolute; top: 0; left: 0; width: calc(14px * var(--s)); height: calc(12px * var(--s)); opacity: var(--o); animation: petal-fall var(--dur) linear var(--delay) infinite; will-change: transform; }
.petal i { display: block; width: 100%; height: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe1f0'/%3E%3Cstop offset='.55' stop-color='%23f5a3cf'/%3E%3Cstop offset='1' stop-color='%23d9589f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M1 10C3 3 10 0 16 2c2 .7 3 2 4.2 2.4L23 3.6 21.6 7c1 1.3 1.6 3 1.2 4.8C21.6 17 15 20.5 8.5 19 3.5 18 0 15 1 10z'/%3E%3C/svg%3E") center / contain no-repeat; animation: petal-tumble var(--spin) ease-in-out infinite alternate; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.petal.is-blur i { filter: blur(1.5px); }
.petals.is-off .petal { animation-play-state: paused; }
.petals.is-off .petal i { animation-play-state: paused; }
@keyframes petal-fall {
	0% { transform: translate3d(var(--x), -30px, 0); }
	100% { transform: translate3d(calc(var(--x) + var(--dx)), var(--h), 0); }
}
@keyframes petal-tumble {
	0% { transform: rotate(var(--r0)) rotateX(0deg) rotateY(10deg); }
	50% { transform: rotate(calc(var(--r0) + 120deg)) rotateX(70deg) rotateY(-30deg); }
	100% { transform: rotate(calc(var(--r0) + 250deg)) rotateX(10deg) rotateY(60deg); }
}
@media (prefers-reduced-motion: reduce), (max-width: 900px), (pointer: coarse) { .petals { display: none; } }
.hero-in, .story-head, .slider, .sec-grid, .section-dark .wrap, .final-in { position: relative; z-index: 2; }

/* ------------------------------------------------ sub pages: contact and legal notice */
.subhero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; margin-top: calc(-1 * var(--topbar-h)); padding: calc(var(--topbar-h) + clamp(48px, 7vw, 90px)) 0 clamp(48px, 6vw, 80px); }
.subhero .bg-blossom { opacity: .5; background-position: right center; }
.subhero .bg-blossom::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark) 15%, rgba(20, 10, 18, .4) 60%, transparent); }
.subhero-in { position: relative; z-index: 2; max-width: 820px; margin-inline: max(20px, (100% - 1240px) / 2); }
.subhero .kicker { color: #f0a6d4; }
.subhero .lead { color: var(--on-dark-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-side { display: grid; gap: 18px; position: sticky; top: calc(var(--topbar-h) + 20px); }
.contact-card { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.15rem; margin: 6px 0 8px; }
.contact-card p { color: var(--ink-2); font-size: .94rem; }
.contact-card.is-phone { background: linear-gradient(160deg, var(--accent-soft), var(--card) 70%); }
.phone-big { display: inline-block; margin: 14px 0 10px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; color: var(--accent); text-decoration: none; }
.phone-big:hover { text-decoration: underline; }
.contact-hours { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem !important; }
.contact-main h2 { margin-bottom: 4px; }
.contact-main .lead { margin: 10px 0 30px; }
.form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 7px; font-size: .86rem; font-weight: 600; }
.field.is-wide { grid-column: 1 / -1; }
.req-star { color: var(--accent); margin-left: 3px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input:user-invalid { border-color: #d64541; }
.needs { border: 0; padding: 0; margin: 0; }
.needs legend { font-size: .86rem; font-weight: 600; margin-bottom: 10px; }
.needs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.needs-grid .check { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .2s, background .2s; }
.needs-grid .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.consent { font-size: .86rem; color: var(--ink-2); }
.consent a { color: var(--accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-req { font-size: .8rem; color: var(--ink-2); }
.form-status { min-height: 1.4em; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.form-status[data-kind="error"] { color: #d64541; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { padding: 40px; border-radius: var(--radius); background: var(--accent-soft); text-align: center; outline: none; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--glow-a), var(--accent)); color: #fff; margin-bottom: 16px; }
.done-icon .icon { width: 32px; height: 32px; }
.form-done h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-done .done-again { margin-top: 20px; }
.form-followup { padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); font-size: .92rem; font-weight: 600; }
/* Elements given a display by their class stay hidden when the page hides them */
.form[hidden], .form-done[hidden], .form-followup[hidden] { display: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-side { position: static; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.legal { max-width: 860px; display: grid; gap: 36px; }
.legal-block h2 { font-size: 1.35rem; margin-bottom: 12px; }
.legal-block p { color: var(--ink-2); margin-top: 10px; }
.legal-block a { color: var(--accent); }
.nav a[aria-current] { color: #fff; }
/* With the Contact link the menu needs more room: the « for Dolibarr » tag goes first */
.brand small { display: none; }

/* Free software note under the requirements: same box, quieter */
.req.is-note { margin-top: -26px; background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.req.is-note a { color: var(--accent); }

/* Language picker of the top bar: globe + code, the names in a small menu (details: works without script) */
.lang-pick { position: relative; }
.lang-pick summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; font-weight: 700; color: var(--on-dark); cursor: pointer; transition: background .2s, border-color .2s; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary:hover, .lang-pick[open] summary { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28); }
.lang-globe { width: 17px; height: 17px; color: #f0a6d4; }
.lang-chev { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s; opacity: .7; }
.lang-pick[open] .lang-chev { transform: rotate(-90deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #1f1220; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7); z-index: 60; }
.lang-menu a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 9px; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--on-dark-2); }
.lang-menu a b { width: 22px; font-size: .72rem; color: #f0a6d4; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255, 255, 255, .07); color: #fff; }
.lang-menu a[aria-current] { color: #fff; background: rgba(240, 166, 212, .12); }
@media (max-width: 1380px) { .lang-pick { margin-left: auto; } }

/* Maker of Inbox: TechSane card, then the logos of the customers who agreed to be shown */
.maker { padding-bottom: 0; }
.maker-in { display: grid; gap: 28px; }
.maker-card { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.maker-logo { display: block; }
.maker-logo img { display: block; width: 100%; height: auto; }
.maker-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.maker-card p:not(.kicker) { color: var(--ink-2); max-width: 62ch; }
.maker-card .btn { margin-top: 18px; }
.trust { text-align: center; }
.trust h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.trust ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; }
.trust img { height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.trust a:hover img, .trust a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 700px) { .maker-card { grid-template-columns: 1fr; } .maker-logo { max-width: 220px; } }
